Skip to content

Print deploy results before post-deploy script & migration - #6368

Merged
denik merged 5 commits into
mainfrom
denik/output-reorder
Aug 24, 2026
Merged

denik merged 5 commits into
mainfrom
denik/output-reorder

Conversation

@denik

@denik denik commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Why

The migration's output preceded the deploy's own summary, so its warnings read as belonging to the deploy:

Uploading bundle files to /Workspace/Users/.../files...
Warn: post-deploy dry-run migration to direct: unknown permission level "BOGUS" for secret scope
Created secret_scopes.my_scope
Files: 5 uploaded, 0 deleted
Resources: 2 created, 0 changed, 0 deleted, 0 unchanged

denik added 5 commits August 24, 2026 17:37
The migration's output preceded the deploy's own summary, so warnings from
post-deploy work read as belonging to the deploy:

  Uploading bundle files to ...
  Warn: post-deploy dry-run migration to direct: ...
  Created secret_scopes.my_scope
  Files: 5 uploaded, 0 deleted

The summary is deliberately printed last, so the migration moves rather than
the summary: out of deployCore, which no longer needs requestedEngine, to the
end of Deploy.

It stays gated on the deploy alone, which the early return above already
guarantees, and not on the postdeploy script: the resources were applied
before that script ran, so the state is worth migrating even if it failed —
the same reasoning that prints the summary regardless.

Co-authored-by: Isaac
.gitattributes sets `merge: ours` for acceptance output.txt, so cherry-picking
the reorder kept main's version of the two files that needed a 3-way merge.
Regenerated with -update; all seven migrate goldens now move.

Co-authored-by: Isaac
"Dry-run the migration ... and record the outcome in telemetry" reads as if
nothing is ever migrated. It is: when the user opted in and the dry-run is
clean, MigrateToDirect renames resources.json, backs up terraform.tfstate and
pushes the new state. Lead with that and keep the dry-run as the condition.

Co-authored-by: Isaac
The summary is the deploy reporting on itself, so it goes ahead of post-deploy
work rather than in between it: the script's output and the migration's both
follow it now, and neither reads as belonging to the deploy.

Previously the script ran first, so on a script failure a clean-looking summary
printed after the error.

Co-authored-by: Isaac
An interrupted "go test -update" run wrote acceptance/fips/output.txt before it
was killed, recording the local non-FIPS failure as the expected output. The
test only passes with the FIPS build flags CI sets, so the golden has to stay
at main's version.

Co-authored-by: Isaac
@denik
denik enabled auto-merge August 24, 2026 16:05
@denik denik changed the title Run the post-deploy migration after the deploy has reported itself Print deploy results before post-deploy script & migration Aug 24, 2026
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: de62f44

Run: 32748609945

Env 🔄​flaky 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 1 4 274 1167 7:46
💚​ aws windows 1 4 276 1165 6:57
💚​ azure linux 1 4 273 1167 10:57
🔄​ azure windows 2 1 4 273 1165 9:38
💚​ gcp linux 1 4 274 1167 10:53
💚​ gcp windows 1 4 276 1165 8:08
7 interesting tests: 4 SKIP, 2 flaky, 1 RECOVERED
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🔄​ TestSyncIncrementalFileSync ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p
🔄​ TestSyncIncrementalSyncPythonNotebookToFile ✅​p ✅​p ✅​p 🔄​f ✅​p ✅​p
Top 14 slowest tests (at least 2 minutes):
duration env testname
3:59 aws windows TestAccept
3:35 azure windows TestAccept
3:30 azure linux TestFilerReadWrite/workspace_files
2:58 gcp windows TestAccept
2:57 azure windows TestFilerReadDir/workspace_files_extensions
2:49 gcp windows TestFilerRecursiveDelete/workspace_files
2:44 gcp windows TestImportDirDoesNotOverwrite
2:31 azure windows TestFilerRecursiveDelete/workspace_files_extensions
2:24 aws windows TestFilerWorkspaceFilesExtensionsReadDir
2:22 gcp windows TestFilerWorkspaceFilesExtensionsReadDir
2:13 gcp linux TestFilerWorkspaceFilesExtensionsDelete
2:09 gcp windows TestFilerRecursiveDelete/workspace_files_extensions
2:08 gcp windows TestFilerWorkspaceFilesExtensionsDelete
2:01 azure linux TestFilerWorkspaceFilesExtensionsReadDir

@denik
denik added this pull request to the merge queue Aug 24, 2026
Merged via the queue into main with commit 4725b73 Aug 24, 2026
25 checks passed
@denik
denik deleted the denik/output-reorder branch August 24, 2026 16:45
denik added a commit that referenced this pull request Aug 25, 2026
#6368 moved the deploy summary ahead of the postdeploy script and the migration,
and #6357 changed the job_runs tests.

Co-authored-by: Isaac
denik added a commit that referenced this pull request Aug 25, 2026
#6368 regenerated the same auto-migrate goldens for its output reordering.
Since main carries no template field, the rebase auto-merge took its line set
and dropped direct_migrate_commit_error_template from both.

Co-authored-by: Isaac
denik added a commit that referenced this pull request Sep 9, 2026
#6368 moved the deploy summary ahead of the postdeploy script and the migration,
and #6357 changed the job_runs tests.

Co-authored-by: Isaac
denik added a commit that referenced this pull request Sep 11, 2026
#6368 moved the deploy summary ahead of the postdeploy script and the migration,
and #6357 changed the job_runs tests.

Co-authored-by: Isaac
denik added a commit that referenced this pull request Sep 11, 2026
#6368 moved the deploy summary ahead of the postdeploy script and the migration,
and #6357 changed the job_runs tests.

Co-authored-by: Isaac
denik added a commit that referenced this pull request Sep 13, 2026
#6368 moved the deploy summary ahead of the postdeploy script and the migration,
and #6357 changed the job_runs tests.

Co-authored-by: Isaac
denik added a commit that referenced this pull request Sep 14, 2026
#6368 moved the deploy summary ahead of the postdeploy script and the migration,
and #6357 changed the job_runs tests.

Co-authored-by: Isaac
denik added a commit that referenced this pull request Sep 14, 2026
#6368 moved the deploy summary ahead of the postdeploy script and the migration,
and #6357 changed the job_runs tests.

Co-authored-by: Isaac
denik added a commit that referenced this pull request Sep 14, 2026
#6368 moved the deploy summary ahead of the postdeploy script and the migration,
and #6357 changed the job_runs tests.

Co-authored-by: Isaac
denik added a commit that referenced this pull request Sep 14, 2026
#6368 moved the deploy summary ahead of the postdeploy script and the migration,
and #6357 changed the job_runs tests.

Co-authored-by: Isaac
denik added a commit that referenced this pull request Sep 14, 2026
#6368 moved the deploy summary ahead of the postdeploy script and the migration,
and #6357 changed the job_runs tests.

Co-authored-by: Isaac
denik added a commit that referenced this pull request Sep 14, 2026
#6368 moved the deploy summary ahead of the postdeploy script and the migration,
and #6357 changed the job_runs tests.

Co-authored-by: Isaac
janniklasrose pushed a commit that referenced this pull request Sep 15, 2026
## Why

The migration's output preceded the deploy's own summary, so its
warnings read as belonging to the deploy:

```
Uploading bundle files to /Workspace/Users/.../files...
Warn: post-deploy dry-run migration to direct: unknown permission level "BOGUS" for secret scope
Created secret_scopes.my_scope
Files: 5 uploaded, 0 deleted
Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
```
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.

3 participants