You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
job_runs: report the run page and the outcome, not bundle run's event
The wait borrowed `bundle run`'s progress event to report a run, which put a
timestamp in the middle of a deploy's output, made dresources depend on the
`bundle run` progress package, and repeated on failure the state message the
error already carries. A deploy now prints the run page and, once the run
succeeds, its outcome; every state change still goes to the log. bundle/run is
untouched again, so the shared JobStateTracker is no longer needed.
Review cleanups along with it:
- ignore_remote_changes says why each field is ignored rather than calling all
of them immutable: job_id is, the parameter fields come back resolved against
the job's defaults, and the rest are never returned. The reason is what
`bundle plan` shows the user.
- Restore the note that `field: ""` matches nothing, which still applies to the
root recreate_on_changes rule.
- Drop TestLookupReferencePreDeploy_JobRunReferencesAreRaw, left over from the
CheckSettled iteration: it asserts framework behaviour this branch does not
change.
- testCRUD reads the resource again after WaitAfterCreate instead of special
casing job_runs, the way the DoUpdate block below it already does.
- Drop the RecordRequests failed_run already inherits, and comment the read_id.py
call that exists only to register a replacement.
Copy file name to clipboardExpand all lines: acceptance/bundle/resources/job_runs/failed_run/output.txt
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,6 @@
4
4
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files...
5
5
Deploying resources...
6
6
job run [MY_RUN_ID]: Run URL: [RUN_URL]
7
-
job run [MY_RUN_ID]: [TIMESTAMP] "test-job-[UNIQUE_NAME]" INTERNAL_ERROR FAILED Task main failed with message: Workload failed, see run output for details.
8
7
Error: cannot create resources.job_runs.my_run: waiting after creating id=[MY_RUN_ID]: run did not succeed: FAILED: Task main failed with message: Workload failed, see run output for details.
9
8
task "main": RuntimeError: intentional failure
10
9
run page: [RUN_URL]
@@ -28,7 +27,6 @@ Plan: 2 to add, 0 to change, 1 to delete, 1 unchanged
28
27
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files...
29
28
Deploying resources...
30
29
job run [MY_RUN_ID_2]: Run URL: [RUN_URL]
31
-
job run [MY_RUN_ID_2]: [TIMESTAMP] "test-job-[UNIQUE_NAME]" INTERNAL_ERROR FAILED Task main failed with message: Workload failed, see run output for details.
32
30
Error: cannot recreate resources.job_runs.my_run: waiting after creating id=[MY_RUN_ID_2]: run did not succeed: FAILED: Task main failed with message: Workload failed, see run output for details.
0 commit comments