Commit c7ea606
fix(ci): unblock Full Lifecycle Tests workflow (#592)
* fix(ci): unblock Full Lifecycle Tests workflow
Weekly scheduled run failed with `pytest: error: unrecognized
arguments: --timeout=1800` because pytest-timeout was passed to pytest
but never declared as a dev dependency.
- Add pytest-timeout>=2.3.0 to [project.optional-dependencies].dev
- Scope lifecycle job to `environment: staging` so it can resolve
ANTHROPIC_API_KEY (currently only present on the staging env, not at
repo level), otherwise conftest skips the entire suite.
- Capture pytest stdout/stderr to artifacts/pytest.log via tee and use
--basetemp inside the workspace, so failure artifacts upload even
when pytest fails to start.
* fix(test): drop invalid --execute flag from cf work batch run calls
The lifecycle CLI test passed `--execute` to `cf work batch run`, but
that flag only exists on `cf work start` (single task). Batch always
executes (use `--dry-run` to preview). The flag was silently broken
since the test was added (bdb6686) because the lifecycle suite was
never green in CI — the pytest-timeout dep error masked it.
Fixes the AssertionError surfaced by the first non-skipped lifecycle
run after the dep fix:
Error: No such option: --execute
* fix(test): promote BACKLOG→READY in lifecycle fixture
`cf tasks generate` creates tasks in BACKLOG status by design (the CLI
prints next-step hints suggesting `cf tasks set status READY --all` to
promote them). The lifecycle fixture skipped this step, so
`cf work batch run --all-ready` returned "No READY tasks found" and
exited 0 — the test passed the batch-run assertion but the agent
never actually built anything, and acceptance checks correctly
flagged the missing csv_stats.py.
Add the promotion step to initialized_workspace and update the
docstring (which still referenced the no-longer-valid --execute flag).
---------
Co-authored-by: Test User <test@example.com>1 parent ac19311 commit c7ea606
5 files changed
Lines changed: 31 additions & 6 deletions
File tree
- .github/workflows
- tests/lifecycle
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
82 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
90 | | - | |
| 95 | + | |
91 | 96 | | |
| 97 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
| 97 | + | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
113 | 118 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
71 | | - | |
| 70 | + | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments