Skip to content

[3814 by GPT-6.2 Astra] propr deploy fly: lift the stale release guards for Sprites/Fly Machines runtimes and idle shutdown - #3815

Merged
integry merged 2 commits into
3758-epic-runtime-abstraction-sc0from
3814/gpt-6.2-astra-propr-deploy-fly-lift-the-20261125-2259-6xf
Nov 26, 2026
Merged

integry merged 2 commits into
3758-epic-runtime-abstraction-sc0from
3814/gpt-6.2-astra-propr-deploy-fly-lift-the-20261125-2259-6xf

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3814

Branch: 3814/gpt-6.2-astra-propr-deploy-fly-lift-the-20261125-2259-6xf
Commits: ✅ Changes committed (25d40af)


AI Processing Completed

Execution Details:

Summary:
propr deploy fly now defaults to Sprites and accepts Fly Machines. Docker still requires --legacy-docker, and idle shutdown remains opt-in. The CLI requires PROPR_ADMIN_USERS before provisioning and explains how to configure the first agent.

Both Fly guides and the smoke workflow now use the CLI. The GitHub App key stays at /etc/propr/github-app.pem, and the headless Claude setup writes settings to the mounted volume after deployment.

All 140 Fly tests passed. The CLI build, typecheck, and a Sprites dry run with idle shutdown also passed.

Live acceptance is pending. No workflow was dispatched, so there is no new run link. The smoke fixture now requires GH_OAUTH_CLIENT_ID and GH_OAUTH_CLIENT_SECRET in FLY_E2E_APP_ENV to pass the CLI’s browser sign-in check.

Review digest

Risk-tiered paths

  • High risk (1 file)
    • .github/workflows/fly-e2e.yml (+13/−17): CI or workflow file
  • Normal risk (2 files)
    • packages/cli/src/commands/deploy/flyMachineConfig.ts (+3/−2)
    • packages/cli/src/commands/deployFly.ts (+18/−55)
  • Low risk (5 files)
    • docs/docs/operations/deploy-fly.md (+8/−12)
    • docs/docs/tutorials/setup-fly.md (+18/−57)
    • packages/cli/src/commands/deploy/flyBrowserAuth.test.ts (+1/−1)
    • packages/cli/src/commands/deploy/flyRedeploy.test.ts (+2/−2)
    • packages/cli/src/commands/deployFly.test.ts (+25/−22)

Diff size: 8 files changed, +88/−168 lines

View task for the run's logs and conversation.


This PR was created automatically by ProPR after processing issue #3814.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!


Visual preview

Deploy to Fly

Deploy to Fly

The operations guide shows the default Sprites deployment, the administrator requirement and how to configure the first agent.

Full-size original

Live verification

The Fly smoke workflow now deploys through propr deploy fly --agent-runtime sprites --idle-shutdown 2m --backend flyctl …. Run https://github.com/integry/propr/actions/runs/45724146665 (head e6eb895, 23:48–23:59 UTC) passed end to end:

Leftovers afterwards: 0 propr-e2e-* Fly apps; fixture branches main only; 0 open PRs; 0 open issues.

`propr deploy fly` now defaults to Sprites and accepts Fly Machines. Docker still requires `--legacy-docker`, and idle shutdown remains opt-in. The CLI requires `PROPR_ADMIN_USERS` before provisioning and explains how to configure the first agent.

Both Fly guides and the smoke workflow now use the CLI. The GitHub App key stays at `/etc/propr/github-app.pem`, and the headless Claude setup writes settings to the mounted volume after deployment.

All 140 Fly tests passed. The CLI build, typecheck, and a Sprites dry run with idle shutdown also passed.

Live acceptance is pending. No workflow was dispatched, so there is no new run link. The smoke fixture now requires `GH_OAUTH_CLIENT_ID` and `GH_OAUTH_CLIENT_SECRET` in `FLY_E2E_APP_ENV` to pass the CLI’s browser sign-in check.

ProPR-Agent: codex/gpt-6.2-astra
@integry

integry commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Fixture secrets: take the OAuth client from separate secrets

fly-e2e.yml now requires GH_OAUTH_CLIENT_ID and GH_OAUTH_CLIENT_SECRET inside FLY_E2E_APP_ENV, because propr deploy fly needs a browser sign-in method. That secret is one bundled env file that can't be read back. Adding two keys would mean recreating it entirely, including the App private key and the Anthropic settings.

Please change the workflow to:

  • read the OAuth client from two new optional-to-configure secrets, FLY_E2E_GH_OAUTH_CLIENT_ID and FLY_E2E_GH_OAUTH_CLIENT_SECRET, and append them to $ENV_FILE as GH_OAUTH_CLIENT_ID / GH_OAUTH_CLIENT_SECRET (mask the secret);
  • include both in the fixture job's enabled check, so a missing secret skips the run with a clear summary, as it does for the others;
  • update the secrets table in docs/docs/tutorials/setup-fly.md. The values are the fixture GitHub App's own client ID and a client secret generated in the App settings. The callback URL is never used in CI, since there's no browser sign-in, so it can stay a placeholder.

FLY_E2E_APP_ENV should keep requiring only what it holds today: PROPR_ADMIN_USERS, GH_APP_ID, GH_INSTALLATION_ID, PROPR_GH_PRIVATE_KEY_B64 and CLAUDE_SETTINGS_B64.

@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit e6eb895

Summary of Changes

I changed .github/workflows/fly-e2e.yml and the secrets table in docs/docs/tutorials/setup-fly.md as requested. Nothing was run live: the YAML parses and I ran the new skip check locally on its own. No tests reference this workflow, and actionlint and shellcheck aren't installed here.

Workflow

  • Skip check: the fixture job now also requires FLY_E2E_GH_OAUTH_CLIENT_ID and FLY_E2E_GH_OAUTH_CLIENT_SECRET. I also changed the skip summary to name the missing secrets (e.g. "…fixture secrets are missing: FLY_E2E_GH_OAUTH_CLIENT_SECRET."), so the check is now one flag per secret instead of a single combined one. I tested that logic with one secret missing and with all present.
  • Deploy step: it reads the two new secrets, masks the client secret with ::add-mask::, and appends them to $ENV_FILE as GH_OAUTH_CLIENT_ID and GH_OAUTH_CLIENT_SECRET.
  • FLY_E2E_APP_ENV: the required-key check is back to PROPR_ADMIN_USERS, GH_APP_ID, GH_INSTALLATION_ID, PROPR_GH_PRIVATE_KEY_B64 and CLAUDE_SETTINGS_B64. If the bundled file also has OAuth keys, no conflict: the CLI's env-file parser keeps the last value for a key, so the appended values win.

Docs

  • The FLY_E2E_APP_ENV row no longer lists the OAuth keys.
  • Two new rows: FLY_E2E_GH_OAUTH_CLIENT_ID is the fixture GitHub App's own client ID, and FLY_E2E_GH_OAUTH_CLIENT_SECRET is a client secret generated in the App settings. They also say the callback URL can stay a placeholder because CI never signs in through the browser.

I didn't add a visual preview, since the only visible change is two rows in a docs table.

Review digest

Risk-tiered paths

  • High risk (1 file)
    • .github/workflows/fly-e2e.yml (+22/−5): CI or workflow file
  • Normal risk: none
  • Low risk (1 file)
    • docs/docs/tutorials/setup-fly.md (+3/−1)

Diff size: 2 files changed, +25/−6 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @integry
  • Time: 3m 40s
  • Tokens: 504,598 (499,910 in / 4,688 out)
  • Cost: $0.43

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 7177644364✓

I changed `.github/workflows/fly-e2e.yml` and the secrets table in `docs/docs/tutorials/setup-fly.md` as requested. Nothing was run live: the YAML parses and I ran the new skip check locally on its own. No tests reference this workflow, and actionlint and shellcheck aren't installed here.

**Workflow**
- **Skip check:** the `fixture` job now also requires `FLY_E2E_GH_OAUTH_CLIENT_ID` and `FLY_E2E_GH_OAUTH_CLIENT_SECRET`. I also changed the skip summary to name the missing secrets (e.g. "…fixture secrets are missing: FLY_E2E_GH_OAUTH_CLIENT_SECRET."), so the check is now one flag per secret instead of a single combined one. I tested that logic with one secret missing and with all present.
- **Deploy step:** it reads the two new secrets, masks the client secret with `::add-mask::`, and appends them to `$ENV_FILE` as `GH_OAUTH_CLIENT_ID` and `GH_OAUTH_CLIENT_SECRET`.
- **`FLY_E2E_APP_ENV`:** the required-key check is back to `PROPR_ADMIN_USERS`, `GH_APP_ID`, `GH_INSTALLATION_ID`, `PROPR_GH_PRIVATE_KEY_B64` and `CLAUDE_SETTINGS_B64`. If the bundled file also has OAuth keys, no conflict: the CLI's env-file parser keeps the last value for a key, so the appended values win.

**Docs**
- The `FLY_E2E_APP_ENV` row no longer lists the OAuth keys.
- Two new rows: `FLY_E2E_GH_OAUTH_CLIENT_ID` is the fixture GitHub App's own client ID, and `FLY_E2E_GH_OAUTH_CLIENT_SECRET` is a client secret generated in the App settings. They also say the callback URL can stay a placeholder because CI never signs in through the browser.

I didn't add a visual preview, since the only visible change is two rows in a docs table.

PR: #3815
Comment by: @integry (ID: 7177644364)
Model: Claude Opus 5.5

ProPR-Agent: claude/claude-opus-5-5
@propr-dev

propr-dev Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 2/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 2/4
  • Result: failure
  • Commit: e6eb8956f290 (e6eb8956f290c1cc8c90848f372fede804a69e28)
  • Run: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:46134
Process completed with exit code 1.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@propr-dev

propr-dev Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @propr-dev[bot]

Analysis Summary

I didn't change this branch. The failure isn't caused by this PR, and the fix belongs on main.

What failed: one test in test/worktreeObjectRecovery.test.ts, test 29 ("a repair interrupted before its fetch was retried does not authorize a donor for another damaged ref"). Git reported packfile … index not opened and unable to load rev-index. The other 291 test files in the shard passed, and shard 3/4 was cancelled after this one failed.

Why it isn't this PR: the test file isn't on this branch. CI tests the PR merged with main, so the file comes from main. This PR only touches the Fly CLI, the docs and fly-e2e.yml. The same file passed in another branch's run on the same CI setup at about the same time.

Cause: this is a timing flake in the test, and only git 2.56 (the version on the CI runners) triggers it.

  • Test 29 adds two repair packs to its test clone, then fetches.
  • That fetch starts git's automatic maintenance in the background. In git 2.56 that maintenance can repack similar-sized packs.
  • The repack replaces pack files while the test's git fsck is reading them, which is the CI error. Sometimes it is still writing while the test deletes its temporary directory, which fails with ENOTEMPTY.

How I confirmed it: the container has git 2.39, where the test always passes, so I built git 2.56.1 and ran main's copy of the file 4 at a time:

  • Unchanged, 3 of 20 runs failed, always on test 29.
  • With one added line in the test's setup, turning off automatic maintenance for the test clone, 0 of 12 runs failed.

The added line goes after the other addConfig calls in the fixture() helper:

await git.addConfig('maintenance.auto', 'false');

What to do:

  • For this PR: re-run the failed jobs.
  • For the flake: apply that line on main in a separate change. It can't be added from this branch: since the file doesn't exist here, adding a different copy would conflict with main and make the PR unmergeable.

No visual preview, since nothing visible changed.

No code changes were necessary based on the current state of the branch.


🤖 Analysis Details

  • Model: Claude Opus 5.5 (medium)
  • Time: 14m 27s
  • Tokens: 2,274,286 (2,259,919 in / 14,367 out)
  • Cost: $1.09

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 7178179734✓

integry commented Nov 26, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=3

@propr-dev propr-dev Bot added the ultrafix label Nov 26, 2026
@propr-dev

propr-dev Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 3)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

Ready to merge within the reviewed scope. The changes remove the obsolete remote-runtime gate, align deployment configuration with runtime consumers, and simplify the deployment guides without adding unnecessary abstractions.

✅ Runtime compatibility — The supplied worker and runtime code supports Sprites and Fly Machines without Docker image preparation, supporting removal of the CLI restriction.

✅ Persistent configuration — Managed credentials now use the mounted data volume, and deployments receive a stable instance ID for Sprite pool ownership.

✅ CLI smoke coverage — The workflow now exercises the CLI deployment path with explicit OAuth credentials and retains idle-stop, wake, agent execution, and cleanup verification.

This assessment is based on static review of the supplied code. The authoritative current-head status reports 35 passed checks and no failures or pending checks.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Cover administrator environment precedence

Consider testing the shell-environment fallback added in packages/cli/src/commands/deployFly.ts, including an environment file overriding the shell value. Current additions test administrator validation through prepareFlyDeploy, but do not directly exercise the merge performed by runDeployFly. This is optional coverage for straightforward configuration behavior, not a demonstrated defect.

Score

The implementation is focused, consistent with the supplied runtime contracts, and supported by passing current-head checks. No merge-blocking regression was identified in the supplied diff.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 16s
  • Tokens: 64,079 (63,672 in / 407 out)
  • Cost: $0.53

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S1

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 26, 2026
@propr-dev propr-dev Bot changed the title 🔨 [3814 by GPT-6.2 Astra] propr deploy fly: lift the stale release guards for Sprites/Fly Machines runtimes and idle shutdown ✅❾ [3814 by GPT-6.2 Astra] propr deploy fly: lift the stale release guards for Sprites/Fly Machines runtimes and idle shutdown Nov 26, 2026
@integry
integry merged commit 160a981 into 3758-epic-runtime-abstraction-sc0 Nov 26, 2026
70 of 76 checks passed
@propr-dev propr-dev Bot changed the title ✅❾ [3814 by GPT-6.2 Astra] propr deploy fly: lift the stale release guards for Sprites/Fly Machines runtimes and idle shutdown [3814 by GPT-6.2 Astra] propr deploy fly: lift the stale release guards for Sprites/Fly Machines runtimes and idle shutdown Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant