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

ISSUE-220: replace using npx to execute action-validator, use the binary instead #576

Conversation

beto-aveiga
Copy link
Collaborator

@beto-aveiga beto-aveiga commented May 16, 2024

Description

@github-actions github-actions bot temporarily deployed to pantheon-pr-576 May 16, 2024 22:43 Destroyed
Copy link
Member

@justafish justafish left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. This would download the binary each time the task is run, instead could you please change it to use the the same installation method as we use for task and the local security checker e.g.
https://github.com/Lullabot/drainpipe/blob/main/src/BinaryInstaller.php
https://github.com/Lullabot/drainpipe/blob/main/drainpipe-dev/src/DevBinaryInstallerPlugin.php

@beto-aveiga
Copy link
Collaborator Author

@justafish I noticed that action-validator is only available for

  • linux amd64
  • linux arm64
  • darwin amd64
  • darwin arm64

Is that something we need to worry about? Or do something different in the binary installer? Or fallback to npx when the binary is not found?

@github-actions github-actions bot temporarily deployed to pantheon-pr-576 May 27, 2024 15:18 Destroyed
@github-actions github-actions bot temporarily deployed to pantheon-pr-576 May 27, 2024 15:55 Destroyed
@beto-aveiga
Copy link
Collaborator Author

I just added a fallback in case the binary is not available.

@deviantintegral
Copy link
Member

I just added a fallback in case the binary is not available.

That would be if you were running on Windows, directly on the host? Do we actually support doing that? @justafish thoughts?

If we keep it, I think we should document that it's specifically for Windows support as a comment.

tasks/github.yml Outdated Show resolved Hide resolved
tasks/github.yml Outdated Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to pantheon-pr-576 June 5, 2024 11:33 Destroyed
Copy link
Member

@justafish justafish left a comment

Choose a reason for hiding this comment

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

I added a minor tweak to the explicit path of the binary, and added Andrew's suggestion for a comment. I've tested this locally with the drainpipe-test script and all looks to be working well 👍

Thanks all!

…-slow-compared-to-calling-the-binary-directly
@github-actions github-actions bot temporarily deployed to pantheon-pr-576 June 5, 2024 12:32 Destroyed
@justafish justafish merged commit d8692a0 into main Jun 5, 2024
36 checks passed
@justafish justafish deleted the issue-220-npx-action-validator-cli-is-really-slow-compared-to-calling-the-binary-directly branch June 5, 2024 13:05
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