Skip to content

test: expect metamorph from outside the run to be rejected - #1231

Closed
vdusek wants to merge 1 commit into
masterfrom
test/metamorph-from-outside-error
Closed

vdusek wants to merge 1 commit into
masterfrom
test/metamorph-from-outside-error

Conversation

@vdusek

@vdusek vdusek commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

The platform now allows a run to be metamorphed only with the run's own API token (apify/apify-core#32513). The integration test test_run_metamorph used the test account token, so it failed with cannot-metamorph-from-outside (failed run).

The test now expects this error: it calls metamorph right after start and asserts InvalidRequestError with status 400 and type cannot-metamorph-from-outside. The platform checks for a finished run before it checks the token, so the call must not wait for the run to start.

✍️ Drafted by Claude Code

@vdusek vdusek added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Nov 16, 2026
@vdusek vdusek self-assigned this Nov 16, 2026
@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.68%. Comparing base (b7033c5) to head (d1a0a21).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1231      +/-   ##
==========================================
+ Coverage   91.29%   95.68%   +4.39%     
==========================================
  Files          63       63              
  Lines        6674     6674              
==========================================
+ Hits         6093     6386     +293     
+ Misses        581      288     -293     
Flag Coverage Δ
integration 90.74% <ø> (?)
unit 91.29% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@vdusek

vdusek commented Nov 16, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favor of #1220.

✍️ Drafted by Claude Code

@vdusek vdusek closed this Nov 16, 2026
@vdusek
vdusek deleted the test/metamorph-from-outside-error branch November 16, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant