Skip to content

fix(quickstart): write receipts for encrypted runs and add --yes / CI non-interactive mode - #2703

Merged
abrichr merged 1 commit into
mainfrom
fix/quickstart-seal
Nov 25, 2026
Merged

abrichr merged 1 commit into
mainfrom
fix/quickstart-seal

Conversation

@abrichr

@abrichr abrichr commented Nov 25, 2026

Copy link
Copy Markdown
Member

Summary

Two quickstart fixes discovered while auditing openadapt quickstart --break-it under default encryption-at-rest:

  1. Write receipt.json for encrypted runs (openadapt/quickstart/engine.py):

    • write_run_receipts() checked (Path(run_dir) / "report.json").is_file(), which is always False when encryption-at-rest is enabled (report.json is stored as report.json.enc), causing quickstart to silently skip writing receipt.json / receipt.private.json on encrypted runs.
    • Switched to _artifact_is_file(Path(run_dir) / "report.json"), matching receipt_after_run() and the rest of engine.py.
    • Note: the SealedSetError ("holds run-summary.json in plaintext, outside its sealed index") seen on PyPI openadapt-flow 4.0.0 was already fixed on main in fix(flow): quickstart writes its run summary through the sealed set (fixes #2682) #2683 (4796efa43) and needs a 4.0.1 release to reach PyPI.
  2. Non-interactive quickstart (openadapt/cli.py, openadapt/quickstart/__init__.py):

    • Added -y / --yes to openadapt quickstart to run straight through without pausing for Press Enter or offering the finale publish prompt.
    • Treated in_ci() as non-interactive by default in run_quickstart() even when a PTY is attached, matching _quickstart_publish_offer().

Tests

  • Added test_write_run_receipts_writes_receipt_for_sealed_run in tests/test_quickstart_lifecycle.py (verified failing before the fix).
  • Extended packages/flow/tests/test_quickstart_encrypted.py to assert run-1/receipt.json exists on encrypted fresh-machine quickstart runs.
  • Added test_quickstart_yes_flag_disables_interactive_and_publish_offer and test_quickstart_defaults_non_interactive_under_ci_even_with_tty in tests/test_quickstart.py.
  • Ran pytest across test_quickstart_lifecycle.py, test_quickstart.py, test_quickstart_command.py, test_run_summary_sealed.py, and test_quickstart_encrypted.py: 125 passed, 2 skipped.

@abrichr
abrichr enabled auto-merge November 25, 2026 21:22
@abrichr
abrichr added this pull request to the merge queue Nov 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 25, 2026
@abrichr
abrichr added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit f76475f Nov 25, 2026
46 checks passed
@abrichr
abrichr deleted the fix/quickstart-seal branch November 25, 2026 23:36
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.

1 participant