Skip to content

Comments

Fix .github/workflows not using it's own pnpm-lockfile.yaml#6275

Merged
witoszekdev merged 3 commits intomainfrom
fix-e2e-workflow]
Jan 27, 2026
Merged

Fix .github/workflows not using it's own pnpm-lockfile.yaml#6275
witoszekdev merged 3 commits intomainfrom
fix-e2e-workflow]

Conversation

@witoszekdev
Copy link
Member

Fixed e2e tests failing due to missing dependencies

@witoszekdev witoszekdev requested a review from a team as a code owner January 23, 2026 12:24
@changeset-bot
Copy link

changeset-bot bot commented Jan 23, 2026

⚠️ No Changeset found

Latest commit: bd34173

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

@witoszekdev witoszekdev added skip changeset Use if your changes doesn't need entry in changelog run pw-e2e Run e2e (basic suite from PR automation) labels Jan 23, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request reorganizes the project's pnpm workspace structure to create independent package management for the .github/workflows directory. The changes separate the GitHub Actions workflow dependencies from the root project workspace, preventing dependency conflicts and ensuring workflows use their own dedicated lockfile.

Changes:

  • Configured root workspace with recursiveInstall: false and sharedWorkspaceLockfile: false to enable independent workspaces
  • Created a separate pnpm workspace in .github/workflows with its own lockfile and configuration
  • Migrated from npm (package-lock.json) to pnpm (pnpm-lock.yaml) for workflow dependencies and updated Node engine requirement from >=14 to >=20

Reviewed changes

Copilot reviewed 4 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pnpm-workspace.yaml Added workspace isolation settings to prevent sharing lockfiles between root and subdirectories
.github/workflows/pnpm-workspace.yaml Created new workspace configuration to make workflows directory an independent pnpm project
.github/workflows/pnpm-lock.yaml Added new pnpm lockfile with ~1000 lines defining workflow dependencies
.github/workflows/package.json Updated Node engine requirement to >=20, added packageManager field, and reorganized field order
.github/workflows/package-lock.json Removed npm lockfile (replaced by pnpm-lock.yaml)
.github/workflows/.nvmrc Added Node version file specifying version 22
Files not reviewed (2)
  • .github/workflows/package-lock.json: Language not supported
  • .github/workflows/pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


trustPolicy: no-downgrade

packages: []
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

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

The PR title contains a grammatical error. "it's" should be "its" (possessive form, not contraction). The title should read: "Fix .github/workflows not using its own pnpm-lockfile.yaml"

Suggested change
packages: []
packages:
- "src"
- ".github/workflows"

Copilot uses AI. Check for mistakes.
@@ -0,0 +1 @@
22
Copy link

Copilot AI Jan 23, 2026

Choose a reason for hiding this comment

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

The .nvmrc file specifies Node version 22, but the package.json requires Node >=20. While Node 22 satisfies the >=20 requirement, this creates a potential inconsistency. If the project requires Node 20 as the minimum, the .nvmrc should specify 20, or if Node 22 is actually required, the package.json engines field should be updated to reflect this (e.g., "node": ">=22"). Consider aligning these values to avoid confusion about which Node version is actually required.

Suggested change
22
20

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Contributor

Differences Found

✅ No packages or licenses were added.

Summary

Expand
License Name Package Count Packages
0BSD 1
Packages
  • tslib
CC0-1.0 1
Packages
  • type-fest
MIT/X11 1
Packages
  • nub
MPL-1.1 1
Packages
  • harmony-reflect
MPL-2.0 1
Packages
  • dompurify
Public Domain 1
Packages
  • jsonify
Python-2.0 1
Packages
  • argparse
WTFPL 1
Packages
  • utf8-byte-length
<<missing>> 2
Packages
  • busboy
  • streamsearch
CC-BY-4.0 2
Packages
  • @saleor/macaw-ui
  • caniuse-lite
SEE LICENSE IN LICENSE 2
Packages
  • posthog-js
  • spawndamnit
BlueOak-1.0.0 4
Packages
  • glob
  • lru-cache
  • minimatch
  • path-scurry
BSD-2-Clause 23
Packages
  • browser-process-hrtime
  • css-select
  • css-what
  • domelementtype
  • domhandler
  • domutils
  • dotenv
  • dotenv-expand
  • entities
  • escodegen
  • eslint-scope
  • espree
  • esprima
  • esrecurse
  • estraverse
  • esutils
  • nth-check
  • regjsparser
  • stringify-object
  • terser
  • And 3 more...
BSD-3-Clause 42
Packages
  • @saleor/app-sdk
  • @sentry/cli
  • @sentry/cli-darwin
  • @sentry/cli-linux-arm
  • @sentry/cli-linux-arm64
  • @sentry/cli-linux-i686
  • @sentry/cli-linux-x64
  • @sentry/cli-win32-arm64
  • @sentry/cli-win32-i686
  • @sentry/cli-win32-x64
  • @sinonjs/commons
  • @sinonjs/fake-timers
  • abab
  • asn1js
  • babel-plugin-istanbul
  • chroma-js
  • dataloader
  • diff
  • esquery
  • exenv
  • And 22 more...
ISC 47
Packages
  • @istanbuljs/load-nyc-config
  • anymatch
  • boolbase
  • cli-width
  • cliui
  • electron-to-chromium
  • fastq
  • flatted
  • fs.realpath
  • get-caller-file
  • get-own-enumerable-property-symbols
  • glob
  • glob-parent
  • graceful-fs
  • inflight
  • inherits
  • ini
  • isexe
  • knip
  • lru-cache
  • And 27 more...
Apache-2.0 54
Packages
  • @editorjs/editorjs
  • @eslint/config-array
  • @eslint/config-helpers
  • @eslint/core
  • @eslint/object-schema
  • @eslint/plugin-kit
  • @humanfs/core
  • @humanfs/node
  • @humanwhocodes/module-importer
  • @humanwhocodes/retry
  • @opentelemetry/api
  • @opentelemetry/semantic-conventions
  • @playwright/test
  • @pollyjs/adapter
  • @pollyjs/core
  • @pollyjs/persister
  • @pollyjs/utils
  • @swc/core
  • @swc/core-darwin-arm64
  • @swc/core-darwin-x64
  • And 34 more...
MIT 1293
Packages
  • @adobe/css-tools
  • @apollo/client
  • @ardatan/relay-compiler
  • @ardatan/sync-fetch
  • @babel/code-frame
  • @babel/compat-data
  • @babel/core
  • @babel/generator
  • @babel/helper-annotate-as-pure
  • @babel/helper-compilation-targets
  • @babel/helper-create-class-features-plugin
  • @babel/helper-globals
  • @babel/helper-member-expression-to-functions
  • @babel/helper-module-imports
  • @babel/helper-module-transforms
  • @babel/helper-optimise-call-expression
  • @babel/helper-plugin-utils
  • @babel/helper-replace-supers
  • @babel/helper-skip-transparent-expression-wrappers
  • @babel/helper-string-parser
  • And 1273 more...

@codecov
Copy link

codecov bot commented Jan 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 42.53%. Comparing base (b193657) to head (bd34173).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##             main    #6275     +/-   ##
=========================================
  Coverage   42.53%   42.53%             
=========================================
  Files        2486     2486             
  Lines       42955    42955             
  Branches    10109     9694    -415     
=========================================
  Hits        18271    18271             
- Misses      23386    24649   +1263     
+ Partials     1298       35   -1263     

☔ 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.

@witoszekdev witoszekdev added the test deployment Deploy Pull Request to *.saleor.rocks environment label Jan 23, 2026
@witoszekdev
Copy link
Member Author

e2e tests are failing but that's not due to the setup (like previously) but due to missing element (either slow env for PR tests, or we need to fix something in tests)

@witoszekdev witoszekdev enabled auto-merge (squash) January 27, 2026 13:01
Copilot AI review requested due to automatic review settings January 27, 2026 13:01
@witoszekdev witoszekdev merged commit b39710b into main Jan 27, 2026
22 checks passed
@witoszekdev witoszekdev deleted the fix-e2e-workflow] branch January 27, 2026 13:04
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 6 changed files in this pull request and generated 1 comment.

Files not reviewed (2)
  • .github/workflows/package-lock.json: Language not supported
  • .github/workflows/pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

},
"packageManager": "pnpm@10.28.1",
"engines": {
"node": ">=22"
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

The engines.node field specifies ">=22" which is more permissive than the root package.json's "^20 || ^22" and could allow Node 23+ versions. This inconsistency may lead to compatibility issues. Consider aligning this with the root package.json constraint or explicitly documenting why the workflows directory needs a different Node version requirement.

Suggested change
"node": ">=22"
"node": "^20 || ^22"

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run pw-e2e Run e2e (basic suite from PR automation) skip changeset Use if your changes doesn't need entry in changelog test deployment Deploy Pull Request to *.saleor.rocks environment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants