Skip to content

fix: revert dev-terms acceptance preflight (#262) to unblock non-interactive CI - #266

Merged
AnujVishwakarma-src merged 1 commit into
adobe:masterfrom
AnujVishwakarma-src:revert-262-dev-terms
Sep 23, 2026
Merged

AnujVishwakarma-src merged 1 commit into
adobe:masterfrom
AnujVishwakarma-src:revert-262-dev-terms

Conversation

@AnujVishwakarma-src

Copy link
Copy Markdown
Contributor

Problem

PR #262 ("feat: fix the 451 CoreConsole error into a better user flow to accept developer terms") added an interactive Developer Terms preflight (ensureDevTermAccepted) to the console commands. It prompts Do you accept the terms? (y/n) whenever the org's terms are not both accepted and current.

In a non-interactive context — e.g. aio console:project:select run as a CI/CD step — that prompt has no non-interactive path (the fail-fast branch only triggers on --json/--yml). The prompt blocks, the runner terminates the process, and the job exits with code 130, breaking pipelines that worked on 5.4.1.

Why revert is safe

#262 was merged 2026-06-12 but first released in 5.4.2 (2026-09-15). For the ~4 months before that, 5.4.1 — with no terms preflight — was the shipped behavior every user ran. This revert simply restores that prior, known-good behavior. Terms-accepted orgs (which previously worked in CI) are unblocked immediately.

Scope

Validation

  • 318 tests pass, 100% coverage, eslint clean.
  • package.json: hyperlinker removed, @adobe/aio-lib-ims stays ^8.

Note for the Console team

This is your feature — raising as a fast revert to unblock a customer's CI now. If you prefer to keep the interactive 451 improvement, a targeted alternative is to make ensureDevTermAccepted skip the prompt when !process.stdin.isTTY / in CI (fail fast or bypass) rather than a full revert. Happy to switch to that approach. Tracking on the engineering side under the Developer-Terms follow-up.

…-interactive CI

PR adobe#262 added an interactive Developer Terms preflight to console commands.
In a non-interactive context (e.g. `aio console:project:select` in a CI
pipeline) the y/n acceptance prompt blocks with no non-interactive path and
the job is terminated with exit 130, breaking automation that worked on 5.4.1.

adobe#262 was merged 2026-06-12 but first released in 5.4.2 (2026-09-15), so the
pre-adobe#262 behavior was the shipped reality on 5.4.1 for the prior ~4 months;
this revert restores it. The @adobe/aio-lib-ims ^8 bump from adobe#263 is kept.
@codecov

codecov Bot commented Sep 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AnujVishwakarma-src
AnujVishwakarma-src merged commit 8281174 into adobe:master Sep 23, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants