-
-
Notifications
You must be signed in to change notification settings - Fork 932
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
ERR_PNPM_FILTER_CHANGED - false positive, breaks ci #5438
Comments
Here is the source code about the test case. The error comes up while the branch doesn't exist. |
Im not sure why I am getting this error from git. Im expecting $ git diff --name-only main..HEAD
error: cannot run delta: No such file or directory
.github/actions/setup-node/action.yml
.github/workflows/pr-lint.yml
.gitignore
package.json
packages/ui/package.json
pnpm-lock.yaml
turbo.json |
I'm having exactly the same problem. I'm trying to run my pipeline in a monorepo where I just want folders inside pnpm --filter "{packages/**}[origin/master]" publish --publish-branch master --no-git-checks but it fails with: ERR_PNPM_FILTER_CHANGED Filtering by changed packages failed.
Error: Process completed with exit code 1. |
I'm also seeing this problem. Same exact situation as @jalbertsr. |
I'm also seeing this problem.
PS: This problem only found in Gitlab CI environment. I used this |
Finally, i solved this problem. actions/checkout#118 (comment) Just need to fetch git branch manually at first. git fetch --no-tags --prune --depth=1 origin +refs/heads/main:refs/remotes/origin/main
pnpm -r --filter "...[origin/main]" run --if-present build I guess that in the CI environment, the logic of Git's pulling and fetching may be different from local development. |
pnpm version:
7.12.2
Code to reproduce the issue:
pnpm --filter-prod="...[main]" test:e2e
Expected behavior:
Expected to execute the run script, test:e2e, in each workspace that has has changed compared to a common ancestor node with the main branch, as well as workspace that are dependent on the change.
Actual behavior:
Filtering workspace packages based on what has changed in a GitHub workflow fails:
Additional information:
I can not find docs on ERR_PNPM_FILTER_CHANGED and opened issue for the website.
But this test case provides a description of what is being tested when that error is expected, 'selection should fail when diffing to a branch that does not exist'
The 'main' branch absolutely does exist.
node -v
prints: v18.8.0The text was updated successfully, but these errors were encountered: