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

Remove linting from the makeref command, and use the locally-installed version of Gulp instead a globally-installed one #44

Merged
merged 2 commits into from
May 31, 2024

Conversation

timvandermeij
Copy link
Contributor

@timvandermeij timvandermeij commented May 31, 2024

The commit messages contain more details about the individual changes.

Fixes a part of mozilla/pdf.js#11851.
Unblocks mozilla/pdf.js#18197.

Linting is migrated to GitHub Actions and runs for every pushed change,
so it's not necessary to repeat it during the `makeref` command. We
don't do this for other bot commands either, and removing it simplifies
the code and shortens the runtime.
…d one

The globally-installed version of Gulp on the bots is old, and recently
we moved away from using globally-installed dependencies in favor of
using locally-installed ones for maintainability, isolation and
reproducibility of build environments. For more information, refer to
PRs mozilla/pdf.js#17913 and
mozilla/pdf.js#17489.

In mozilla/pdf.js#18197 we have seen that even
though locally Gulp 5 is installed the global version is preferred by
the bots because the `gulp` command (available in the PATH) is used
instead of `npx gulp` which prefers the locally-installed version from
the `node_modules` folder.

This commit fixes the issue by making all Gulp invocations use `npx gulp`
instead, similar to what we already did in the GitHub Actions pipelines.
@timvandermeij timvandermeij changed the title Gulp 5 Gulp 5 improvements May 31, 2024
@timvandermeij timvandermeij changed the title Gulp 5 improvements Remove linting from the makeref command, and use the locally-installed version of Gulp instead a globally-installed one May 31, 2024
Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you.

@timvandermeij timvandermeij merged commit dd5cc4f into mozilla:master May 31, 2024
@timvandermeij timvandermeij deleted the gulp-5 branch May 31, 2024 18:05
@timvandermeij
Copy link
Contributor Author

Thank you for reviewing! Could you deploy this change to the Linux and Windows bots? I'll retrigger the tests once that's completed.

@calixteman
Copy link
Contributor

@timvandermeij, it should be done, tell me if something goes wrong.

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

Successfully merging this pull request may close these issues.

2 participants