Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: disable file parallelism for fixture tests #5159

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

mrbbot
Copy link
Contributor

@mrbbot mrbbot commented Mar 5, 2024

What this PR solves / how to test

Some of the get-{bindings,platform}-proxy tests have been flaking in CI recently. I think this is because they're trying to connect to the dev registry, but the dev registry was started by an earlier test that just finished. This leads to socket errors like other side closed. The proper solution to this problem is to start a dev registry for each test (file). We could do this by assigning a different dev registry port for each test (file/project). In the meantime, this change disables parallelism for the fixture tests, ensuring if a dev registry is started, it is definitely shut down before another test begins.

Author has addressed the following

  • Tests
    • TODO (before merge)
    • Included
    • Not necessary because: changing CI configuration
  • Changeset (Changeset guidelines)
    • TODO (before merge)
    • Included
    • Not necessary because: changing CI configuration
  • Public documentation

@mrbbot mrbbot requested a review from a team as a code owner March 5, 2024 10:19
Copy link

changeset-bot bot commented Mar 5, 2024

⚠️ No Changeset found

Latest commit: 7289973

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

github-actions bot commented Mar 5, 2024

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8157203385/npm-package-wrangler-5159

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/5159/npm-package-wrangler-5159

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8157203385/npm-package-wrangler-5159 dev path/to/script.js
Additional artifacts:
npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8157203385/npm-package-create-cloudflare-5159 --no-auto-update
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8157203385/npm-package-cloudflare-kv-asset-handler-5159
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8157203385/npm-package-miniflare-5159
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8157203385/npm-package-cloudflare-pages-shared-5159
npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/8157203385/npm-package-cloudflare-vitest-pool-workers-5159

Note that these links will no longer work once the GitHub Actions artifact expires.


wrangler@3.30.1 includes the following runtime dependencies:

Package Constraint Resolved
miniflare workspace:* 3.20240223.0
workerd 1.20240223.1 1.20240223.1
workerd --version 1.20240223.1 2024-02-23

Please ensure constraints are pinned, and miniflare/workerd minor versions match.

@petebacondarwin
Copy link
Contributor

Blocked on #5161

Some of the `get-{bindings,platform}-proxy` tests have been flaking in
CI recently. I think this is because they're trying to connect to the
dev registry, but the dev registry was started by an earlier test that
just finished. This leads to socket errors like `other side closed`.
The proper solution to this problem is to start a dev registry for
each test (file). We could do this by assigning a different dev
registry port for each test (file/project). In the meantime, this
change disables parallelism for the fixture tests, ensuring if a dev
registry is started, it is definitely shut down before another test
begins.
@mrbbot mrbbot force-pushed the bcoll/disable-vitest-parallelism branch from 3f3bc63 to 7289973 Compare March 5, 2024 13:37
Copy link

codecov bot commented Mar 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.36%. Comparing base (24b4c42) to head (7289973).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5159      +/-   ##
==========================================
+ Coverage   70.31%   70.36%   +0.04%     
==========================================
  Files         298      298              
  Lines       15551    15551              
  Branches     4001     4001              
==========================================
+ Hits        10935    10942       +7     
+ Misses       4616     4609       -7     

see 6 files with indirect coverage changes

@mrbbot mrbbot merged commit 24ff22b into main Mar 5, 2024
17 checks passed
@mrbbot mrbbot deleted the bcoll/disable-vitest-parallelism branch March 5, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants