Commit 309f79f
Move stop-time safety checks to dedicated job with actions:write permission (#1156)
* Initial plan
* Move stop-time safety checks to dedicated job with actions:write permission
- Created buildStopTimeCheckJob() function to create dedicated job for stop-time checks
- Updated buildJobs() to create stop_time_check job before main job
- Main job now depends on stop_time_check job (if it exists)
- stop_time_check job has actions:write permission for gh workflow disable
- stop_time_check job depends on activation job (if it exists)
- Removed generateStopTimeChecks() call from main job steps
- Added comprehensive tests for stop-time check job creation
- All tests passing and linter clean
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Remove agent job dependency on stop_time_check job
Per user feedback, the agent job should not have a "needs" dependency on the
stop_time_check job. Both jobs now run independently (or both depend on activation
if it exists), allowing the agent to start without waiting for stop-time checks.
Changes:
- Removed stopTimeCheckJobCreated parameter from buildMainJob
- Reverted buildMainJob to only depend on activation job (if exists)
- Updated tests to reflect that agent no longer depends on stop_time_check
- stop_time_check job still created and runs, just not as blocking dependency
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Format, lint, and recompile workflows
- Formatted JavaScript files with prettier (indentation fixes)
- All lint checks passing
- Recompiled all workflow files to include formatting updates
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Add stop-time test workflows and update dev.md with stop-after
- Added test-claude-stop-time.md and test-copilot-stop-time.md test workflows
- Both test workflows use stop-after configuration (+24h and +48h respectively)
- Updated dev.md with stop-after: "2026-01-01 00:00:00" as requested
- Recompiled all workflows to include stop_time_check jobs
- Test workflows verify stop-time safety check job creation with actions:write permission
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Remove test workflow lock files, format, lint, and recompile
- Removed pkg/cli/workflows/test-claude-stop-time.lock.yml from git tracking
- Removed pkg/cli/workflows/test-copilot-stop-time.lock.yml from git tracking
- Lock files are now ignored by .gitignore (only .md files tracked for tests)
- Formatted JavaScript files with prettier
- All lint checks passing
- Recompiled all workflows
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>1 parent 05ead6d commit 309f79f
File tree
7 files changed
+330
-37
lines changed- .github/workflows
- pkg
- cli/workflows
- workflow
7 files changed
+330
-37
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1329 | 1329 | | |
1330 | 1330 | | |
1331 | 1331 | | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
1332 | 1343 | | |
1333 | 1344 | | |
1334 | 1345 | | |
| |||
1720 | 1731 | | |
1721 | 1732 | | |
1722 | 1733 | | |
1723 | | - | |
1724 | | - | |
| 1734 | + | |
| 1735 | + | |
1725 | 1736 | | |
1726 | 1737 | | |
1727 | 1738 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
94 | | - | |
95 | | - | |
96 | | - | |
| 93 | + | |
| 94 | + | |
97 | 95 | | |
98 | | - | |
| 96 | + | |
99 | 97 | | |
100 | 98 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
133 | 147 | | |
134 | 148 | | |
135 | | - | |
136 | | - | |
137 | | - | |
| 149 | + | |
138 | 150 | | |
0 commit comments