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

Test for hard-to-detect recursive CLI calls #996

Merged
merged 14 commits into from
May 3, 2024

Commits on May 3, 2024

  1. Test for hard-to-detect recursive CLI calls

    Yarn Berry uses an even different scheme for running bin scripts: it
    unpacks the script into a temporary directory and adds that temporary
    directory into the shell's environment.
    
    This mitigate is by far the most expensive, so it's used dead-last to
    avoid the overhead. Looks like on yarn 4.1.1, the call that succeeds
    takes an additional 140ms, so that calling latency is added to every
    call of the package bin script here.
    scotttrinh committed May 3, 2024
    Configuration menu
    Copy the full SHA
    7525d50 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7988924 View commit details
    Browse the repository at this point in the history
  3. Update cache if successful binary was not cached

    In the case of the cache being empty, or it pointing to a wrapper
    script, make sure we update the cache after we get a successful run from
    the CLI. This will not cache the location if the run failed, which could
    be common, but seems safer than always caching.
    scotttrinh committed May 3, 2024
    Configuration menu
    Copy the full SHA
    5b1eb4f View commit details
    Browse the repository at this point in the history
  4. Prettier

    scotttrinh committed May 3, 2024
    Configuration menu
    Copy the full SHA
    e462883 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1336891 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ed9bae5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    06b9e35 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    16bf4db View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4b66b98 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d5f30e5 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    d158b27 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    b90c414 View commit details
    Browse the repository at this point in the history
  13. Fix pnpm exec

    scotttrinh committed May 3, 2024
    Configuration menu
    Copy the full SHA
    41c61db View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    7c0da9f View commit details
    Browse the repository at this point in the history