Skip to content

build: add manually-dispatched stress-test workflow#64118

Merged
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
joyeecheung:stress-workflow
Jul 1, 2026
Merged

build: add manually-dispatched stress-test workflow#64118
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
joyeecheung:stress-workflow

Conversation

@joyeecheung

Copy link
Copy Markdown
Member

Add a GitHub action workflow that can be manually dispatched to stress-run tests on a PR/branch to verify flakiness.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/actions

@nodejs-github-bot nodejs-github-bot added the meta Issues and PRs related to the general management of the project. label Jun 24, 2026
@joyeecheung joyeecheung changed the title tools: add manually-dispatched stress-test workflow build: add manually-dispatched stress-test workflow Jun 24, 2026
Comment thread .github/workflows/stress-test.yml
@joyeecheung joyeecheung added the review wanted PRs that need reviews. label Jun 25, 2026
@panva

panva commented Jun 25, 2026

Copy link
Copy Markdown
Member

How would I trigger this on a PR created from the contributor's fork?

@joyeecheung

joyeecheung commented Jun 25, 2026

Copy link
Copy Markdown
Member Author

How would I trigger this on a PR created from the contributor's fork?

This version only allows triggering from a branch in the repo the workflow file is in - you could still do it from a PR, just that PR must come from a branch here (which also means you need to have write access here). If someone wants to make it work for a fork I think that can be a follow up, but be aware that allowing runs from forks can carry security risks, and to make this action useful there's an argument that allows arbitrary arguments to test.py.

I think for the best balance between usefulness v.s. safety it's better to only allow people with write access in this repo to test from a branch in this repo. If they want to run it from a fork, just use an action from that fork, but not from this repo. So to your question - pull that contributor's branch to your fork, and run that action from your fork.

@panva

panva commented Jun 25, 2026

Copy link
Copy Markdown
Member

Add a GitHub action workflow that can be manually dispatched to stress-run tests on a PR/branch to verify flakiness.

I only asked because of the description that specifically mentions PRs. I'm fine with the scope-as is.

@joyeecheung

joyeecheung commented Jun 25, 2026

Copy link
Copy Markdown
Member Author

PRs are still possible, just that the PRs need to come from a branch in repo, not from a fork e.g. the PR must be nodejs:test -> nodejs:main, not someone:test -> nodejs:main (that means the author needs to have write access to this repo to create nodejs:test).

Add a GitHub action workflow that can be manually dispatched to
stress-run tests on a PR/branch to verify flakiness.

Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
@joyeecheung

Copy link
Copy Markdown
Member Author

Fixed the linter complaints. Can you take a look again? Thanks! @panva @Renegade334

Comment thread .github/workflows/stress-test.yml
Comment thread .github/workflows/stress-test.yml
@joyeecheung

Copy link
Copy Markdown
Member Author

Updated the config a bit and tried to clarify how to make the cache hit in the workflow name. @panva @Renegade334 Can you take a look again? Thanks!

@joyeecheung

Copy link
Copy Markdown
Member Author

@Renegade334 I think I have addressed your comments - do you mind if I land it as-is?

@Renegade334 Renegade334 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for checking!

@joyeecheung joyeecheung added the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 1, 2026
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 1, 2026
@nodejs-github-bot nodejs-github-bot merged commit 29ca673 into nodejs:main Jul 1, 2026
17 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 29ca673

alexfernandez pushed a commit to alexfernandez/node that referenced this pull request Jul 1, 2026
Add a GitHub action workflow that can be manually dispatched to
stress-run tests on a PR/branch to verify flakiness.

Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: nodejs#64118
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
@joyeecheung

Copy link
Copy Markdown
Member Author

Gave it a try on the main branch, looks like it's working as intended https://github.com/nodejs/node/actions/runs/28582481101/job/84745887552

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Issues and PRs related to the general management of the project. review wanted PRs that need reviews.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants