Skip to content

ci: pin setup-apify-cli-action to v1.0.0#1880

Merged
vdusek merged 1 commit into
masterfrom
ci/pin-setup-apify-cli-version
May 7, 2026
Merged

ci: pin setup-apify-cli-action to v1.0.0#1880
vdusek merged 1 commit into
masterfrom
ci/pin-setup-apify-cli-version

Conversation

@vdusek
Copy link
Copy Markdown
Collaborator

@vdusek vdusek commented May 7, 2026

Floating tag v1 does not work, using the full version instead.

Pin the action to an exact version instead of the floating v1 tag so
scheduled e2e runs are reproducible and aren't broken by upstream changes.
@vdusek vdusek added t-tooling Issues with this label are in the ownership of the tooling team. adhoc Ad-hoc unplanned task added during the sprint. labels May 7, 2026
@vdusek vdusek self-assigned this May 7, 2026
@github-actions github-actions Bot added this to the 140th sprint - Tooling team milestone May 7, 2026
@vdusek vdusek merged commit 48891c5 into master May 7, 2026
30 checks passed
@vdusek vdusek deleted the ci/pin-setup-apify-cli-version branch May 7, 2026 07:40
@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.65%. Comparing base (c17f4d5) to head (544d936).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1880      +/-   ##
==========================================
+ Coverage   92.63%   92.65%   +0.01%     
==========================================
  Files         161      161              
  Lines       11323    11323              
==========================================
+ Hits        10489    10491       +2     
+ Misses        834      832       -2     
Flag Coverage Δ
unit 92.65% <ø> (+0.01%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 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 added a commit that referenced this pull request May 8, 2026
## Summary

The scheduled e2e template tests have been failing on every matrix job
since #1874 / #1880 adopted `apify/setup-apify-cli-action@v1.0.0`. The
action installs apify-cli via a `mise` shim that resolves the apify
version by walking up from cwd looking for a `mise.toml`. Our tests run
`subprocess.run(['apify', ...], cwd=tmp_path / actor_name)` from
pytest's default `tmp_path` (`/tmp/pytest-of-runner/...`), which is
outside `MISE_TRUSTED_CONFIG_PATHS` and contains no mise config. The
shim therefore errors with `No version is set for shim: apify`.

This mirrors how `apify/crawlee` handles the same situation in
`test/e2e/tools.mjs` (running `apify push` from a directory under the
project root and setting `GIT_CEILING_DIRECTORIES`).

## Changes

- `pyproject.toml`: pass `--basetemp=./.pytest-tmp` to the
`e2e-templates-tests` poe task so pytest's `tmp_path` lives under the
project root, where `mise`'s parent traversal finds the `mise.toml`
written by `jdx/mise-action` to `$GITHUB_WORKSPACE`.
- `.gitignore`: ignore `.pytest-tmp`.
- `tests/e2e/project_template/test_static_crawlers_templates.py`: set
`GIT_CEILING_DIRECTORIES=tmp_path` on the `apify push` call so git stops
before reaching the project's `.git/`.

Failing run:
https://github.com/apify/crawlee-python/actions/runs/25541426007
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.

2 participants