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

refactor: reduce runtime string format calls, use local target paths #2037

Merged

Conversation

jbedard
Copy link
Member

@jbedard jbedard commented Dec 13, 2024

Was there any reason these were not relative? In all cases we are already checking if we are in the native.package_name() so I think this can all be relative.


Changes are visible to end-users: no

Test plan

  • Covered by existing test cases

@jbedard jbedard requested a review from gregmagolan December 13, 2024 21:03
Copy link

aspect-workflows bot commented Dec 13, 2024

Test

All tests were cache hits

212 tests (100.0%) were fully cached saving 37s.


Test

e2e/bzlmod

All tests were cache hits

5 tests (100.0%) were fully cached saving 502ms.


Test

e2e/gyp_no_install_script

All tests were cache hits

2 tests (100.0%) were fully cached saving 172ms.


Test

e2e/js_image_oci

All tests were cache hits

1 test (100.0%) was fully cached saving 9s.


Test

e2e/npm_link_package

All tests were cache hits

3 tests (100.0%) were fully cached saving 555ms.


Test

e2e/npm_link_package-esm

All tests were cache hits

3 tests (100.0%) were fully cached saving 575ms.


Test

e2e/npm_translate_lock

All tests were cache hits

1 test (100.0%) was fully cached saving 22ms.


Test

e2e/npm_translate_lock_empty

All tests were cache hits

1 test (100.0%) was fully cached saving 22ms.


Test

e2e/npm_translate_lock_multi

All tests were cache hits

2 tests (100.0%) were fully cached saving 97ms.


Test

e2e/npm_translate_lock_partial_clone

All tests were cache hits

1 test (100.0%) was fully cached saving 22ms.


Test

e2e/npm_translate_lock_replace_packages

All tests were cache hits

3 tests (100.0%) were fully cached saving 145ms.


Test

e2e/npm_translate_lock_subdir_patch

All tests were cache hits

1 test (100.0%) was fully cached saving 93ms.


Test

e2e/npm_translate_package_lock

All tests were cache hits

1 test (100.0%) was fully cached saving 26ms.


Test

e2e/npm_translate_yarn_lock

All tests were cache hits

1 test (100.0%) was fully cached saving 26ms.


Test

e2e/package_json_module

All tests were cache hits

1 test (100.0%) was fully cached saving 362ms.


Test

e2e/pnpm_lockfiles

4 test targets passed

Targets
//v54:repos_0_test [k8-fastbuild]24ms
//v60:repos_0_test [k8-fastbuild]30ms
//v61:repos_0_test [k8-fastbuild]25ms
//v90:repos_0_test [k8-fastbuild]24ms

Total test execution time was 103ms. 38 tests (90.5%) were fully cached saving 3s.


Test

e2e/pnpm_workspace

All tests were cache hits

10 tests (100.0%) were fully cached saving 4s.


Test

e2e/pnpm_workspace_rerooted

All tests were cache hits

12 tests (100.0%) were fully cached saving 1s.


Test

e2e/repo_mapping

All tests were cache hits

2 tests (100.0%) were fully cached saving 276ms.


Test

e2e/rules_foo

All tests were cache hits

2 tests (100.0%) were fully cached saving 115ms.


Test

e2e/runfiles

All tests were cache hits

1 test (100.0%) was fully cached saving 116ms.


Test

e2e/vendored_node

All tests were cache hits

1 test (100.0%) was fully cached saving 181ms.


Buildifier      Format

@jbedard jbedard force-pushed the npm_link_all_packages-less-format branch from e5324b5 to 34f8b00 Compare December 14, 2024 01:01
@jbedard jbedard requested a review from alexeagle December 20, 2024 22:20
@jbedard jbedard force-pushed the npm_link_all_packages-less-format branch from 34f8b00 to 7933d26 Compare December 20, 2024 23:37
@jbedard jbedard requested a review from dzbarsky January 8, 2025 23:52
Copy link
Collaborator

@dzbarsky dzbarsky left a comment

Choose a reason for hiding this comment

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

Nice!

@jbedard jbedard force-pushed the npm_link_all_packages-less-format branch 4 times, most recently from c54b4fc to 89d6fc4 Compare January 12, 2025 01:47
@jbedard jbedard force-pushed the npm_link_all_packages-less-format branch from 89d6fc4 to c37870c Compare January 12, 2025 02:48
@jbedard jbedard merged commit 8bc151b into aspect-build:main Jan 12, 2025
96 checks passed
@jbedard jbedard deleted the npm_link_all_packages-less-format branch January 12, 2025 03:45
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.

2 participants