Skip to content

Commit f320f12

Browse files
committed
fix(e2e): use apify v4 SDK for crawlee 4.x tests
apify@3.x is not runtime compatible with @crawlee/core@4 (it iterates Configuration.INTEGER_VARS, which was removed in v4), causing "TypeError: Configuration.INTEGER_VARS is not iterable". Pin the root apify to the v4 beta and point the e2e actors at the next-v4 dist-tag so both the in-process (LOCAL/MEMORY) harness and the pushed PLATFORM actors run the matching v4 SDK.
1 parent 0d90d98 commit f320f12

51 files changed

Lines changed: 104 additions & 68 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pnpm-lock.yaml

Lines changed: 49 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ overrides:
2222
# step to silently report 0 changed packages.
2323
minimatch: "^9.0.0"
2424
"lerna>minimatch": "^3.1.4"
25-
# The published `apify` SDK depends on the 3.x line of `@crawlee/*`, but the
26-
# e2e tests run it against the local 4.x workspace packages. Force the SDK to
27-
# use the workspace versions so its runtime Crawlee-version guard doesn't trip
28-
# (this mirrors the per-actor `overrides.apify` used for PLATFORM tests).
25+
# The e2e tests run the `apify` SDK against the local 4.x workspace packages.
26+
# The default `latest`/`next` tags are the 3.x SDK, which is not runtime
27+
# compatible with `@crawlee/core@4` (e.g. `Configuration.INTEGER_VARS` was
28+
# removed), so pin the v4 SDK and force it to use the workspace `@crawlee/*`
29+
# packages (mirroring the per-actor `overrides.apify` used for PLATFORM tests).
30+
apify: "4.0.0-beta.19"
2931
"apify>@crawlee/core": "workspace:*"
3032
"apify>@crawlee/types": "workspace:*"
3133
"apify>@crawlee/utils": "workspace:*"

test/e2e/adaptive-playwright-default/actor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"description": "Adaptive Playwright Test - Default",
55
"dependencies": {
6-
"apify": "next",
6+
"apify": "next-v4",
77
"@apify/storage-local": "^2.1.3",
88
"@crawlee/basic": "file:./packages/basic-crawler",
99
"@crawlee/browser": "file:./packages/browser-crawler",

test/e2e/adaptive-playwright-robots-file/actor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"description": "Adaptive Playwright Test - Robots file",
55
"dependencies": {
6-
"apify": "next",
6+
"apify": "next-v4",
77
"@apify/storage-local": "^2.3.0",
88
"@crawlee/basic": "file:./packages/basic-crawler",
99
"@crawlee/browser": "file:./packages/browser-crawler",

test/e2e/automatic-persist-value/actor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"description": "Key-Value Store - Automatic Persist Value Test",
55
"dependencies": {
6-
"apify": "next",
6+
"apify": "next-v4",
77
"@apify/storage-local": "^2.3.0",
88
"@crawlee/basic": "file:./packages/basic-crawler",
99
"@crawlee/core": "file:./packages/core",

test/e2e/autoscaling-max-tasks-per-minute/actor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"description": "Autoscaling Pool Test - Max Tasks per Minute",
55
"dependencies": {
6-
"apify": "next",
6+
"apify": "next-v4",
77
"@apify/storage-local": "^2.3.0",
88
"@crawlee/basic": "file:./packages/basic-crawler",
99
"@crawlee/core": "file:./packages/core",

test/e2e/camoufox-cloudflare/actor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"description": "Playwright Test - Camoufox - Solving Cloudflare Challenge",
55
"dependencies": {
6-
"apify": "next",
6+
"apify": "next-v4",
77
"@apify/storage-local": "^2.3.0",
88
"@crawlee/basic": "file:./packages/basic-crawler",
99
"@crawlee/browser": "file:./packages/browser-crawler",

test/e2e/cheerio-curl-impersonate-ts/actor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"description": "Cheerio Crawler Test - curl-impersonate HTTP client",
55
"dependencies": {
6-
"apify": "next",
6+
"apify": "next-v4",
77
"@apify/storage-local": "^2.3.0",
88
"@crawlee/basic": "file:./packages/basic-crawler",
99
"@crawlee/browser-pool": "file:./packages/browser-pool",

test/e2e/cheerio-default-ts/actor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"description": "Cheerio Crawler Test - TypeScript",
55
"dependencies": {
6-
"apify": "next",
6+
"apify": "next-v4",
77
"@apify/storage-local": "^2.3.0",
88
"@crawlee/basic": "file:./packages/basic-crawler",
99
"@crawlee/browser-pool": "file:./packages/browser-pool",

test/e2e/cheerio-default/actor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"description": "Cheerio Crawler Test - Default",
55
"dependencies": {
6-
"apify": "next",
6+
"apify": "next-v4",
77
"@apify/storage-local": "^2.3.0",
88
"@crawlee/basic": "file:./packages/basic-crawler",
99
"@crawlee/browser-pool": "file:./packages/browser-pool",

0 commit comments

Comments
 (0)