Repository navigation
Conversation
The API serves a build log only to a user who can write to or build the Actor (apify/apify-core#33530), so the build log of the public `apify/hello-world` Actor now returns 404 "Log was not found" and `test_build_log` and `test_log_get_from_build` fail. Both tests now read the log of a build from the new session-scoped `build_id_of_own_actor` fixture, which creates an Actor owned by the test user, builds it, and deletes it afterwards. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ocuAK9EJpfkTeEyxmMsQo
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1260 +/- ##
==========================================
+ Coverage 91.39% 95.70% +4.31%
==========================================
Files 65 65
Lines 6798 6798
==========================================
+ Hits 6213 6506 +293
+ Misses 585 292 -293
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
|
||
|
|
||
| async def test_build_log(client: ApifyClient | ApifyClientAsync) -> None: | ||
| async def test_build_log(client: ApifyClient | ApifyClientAsync, build_id_of_own_actor: str) -> None: |
There was a problem hiding this comment.
Nit: This test now does the same thing as test_log_get_from_build, but asserts only is not None. Could it use the same isinstance(log_content, str) and len(log_content) > 0 checks, or could we drop one of the two tests?
✍️ Drafted by Claude Code
| kvs_client.delete() | ||
|
|
||
|
|
||
| @pytest.fixture(scope='session') |
There was a problem hiding this comment.
Note: With xdist, a session fixture runs once per worker, so the 3.11 job built 4 Actors (gw6, gw11, gw13, gw14). The job is still faster than the last green master run, so it's fine as is. Just noting why the tail of the run is slower.
✍️ Drafted by Claude Code
test_build_logandtest_log_get_from_buildgot 404Log was not foundforapify/hello-worldbuilds (failed run).build_id_of_own_actorfixture, which builds an Actor owned by the test user and deletes it afterwards.