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

perf: change js_helpers gather_* utils to accept list, not depset #1787

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

jbedard
Copy link
Member

@jbedard jbedard commented Jun 8, 2024

In almost all use cases these are lists, or for gather_runfiles always depsets. rules_ts seems to follow this pattern already


Changes are visible to end-users: no

Test plan

  • Covered by existing test cases

@jbedard jbedard requested a review from gregmagolan June 8, 2024 01:37
Copy link

aspect-workflows bot commented Jun 8, 2024

Test

All tests were cache hits

193 tests (100.0%) were fully cached saving 42s.


Test

e2e/bzlmod

All tests were cache hits

4 tests (100.0%) were fully cached saving 486ms.


Test

e2e/gyp_no_install_script

All tests were cache hits

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


Test

e2e/js_image_oci

All tests were cache hits

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


Test

e2e/npm_link_package

All tests were cache hits

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


Test

e2e/npm_link_package-esm

All tests were cache hits

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


Test

e2e/npm_translate_lock

All tests were cache hits

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


Test

e2e/npm_translate_lock_empty

All tests were cache hits

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


Test

e2e/npm_translate_lock_multi

All tests were cache hits

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


Test

e2e/npm_translate_lock_partial_clone

All tests were cache hits

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


Test

e2e/npm_translate_lock_subdir_patch

All tests were cache hits

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


Test

e2e/npm_translate_package_lock

All tests were cache hits

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


Test

e2e/npm_translate_yarn_lock

All tests were cache hits

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


Test

e2e/package_json_module

All tests were cache hits

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


Test

e2e/pnpm_lockfiles

All tests were cache hits

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


Test

e2e/pnpm_workspace

All tests were cache hits

8 tests (100.0%) were fully cached saving 3s.


Test

e2e/pnpm_workspace_rerooted

All tests were cache hits

6 tests (100.0%) were fully cached saving 2s.


Test

e2e/repo_mapping

All tests were cache hits

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


Test

e2e/rules_foo

All tests were cache hits

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


Test

e2e/vendored_node

All tests were cache hits

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


Buildifier      Format

@DavidZbarsky-at
Copy link
Contributor

DavidZbarsky-at commented Jun 10, 2024

This would be great! It saves around 1.5s of analysis time for us (close to 10%).
It would also make the measurements for the other improvements we are investigating less noisy

@jbedard jbedard force-pushed the perf-gather-nodepset branch 5 times, most recently from e973fe5 to 59f0ec6 Compare June 19, 2024 16:31
@jbedard jbedard marked this pull request as ready for review June 19, 2024 16:34
@jbedard jbedard requested review from DavidZbarsky-at, gregmagolan and alexeagle and removed request for DavidZbarsky-at June 19, 2024 16:34
@jbedard jbedard enabled auto-merge (squash) June 21, 2024 22:01
Copy link
Member

@gregmagolan gregmagolan left a comment

Choose a reason for hiding this comment

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

🦖

@jbedard jbedard merged commit 9cbf5c6 into aspect-build:main Jun 21, 2024
98 checks passed
@jbedard jbedard deleted the perf-gather-nodepset branch June 21, 2024 22:09
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