Skip to content

Conversation

jbedard
Copy link
Member

@jbedard jbedard commented Jun 27, 2025

This removes a lstat call on almost all files being synced. Only those within directory artifacts will still be done.

Changes are visible to end-users: no

Test plan

  • Covered by existing test cases
  • Manual testing; profile while using aspect run --watch

Copy link

aspect-workflows bot commented Jun 27, 2025

Test

2 test targets passed

Targets
//js/private/test/js_run_devserver:js_run_devserver_test [k8-fastbuild]                 295ms
//js/private/test/js_run_devserver:node_modules_symlink_to_execroot_test [k8-fastbuild] 221ms

Total test execution time was 516ms. 223 tests (99.1%) were fully cached saving 28s.


Test

e2e/bzlmod

All tests were cache hits

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


Test

e2e/gyp_no_install_script

All tests were cache hits

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


Test

e2e/js_image_oci

All tests were cache hits

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


Test

e2e/npm_link_package

All tests were cache hits

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


Test

e2e/npm_link_package-esm

All tests were cache hits

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


Test

e2e/npm_translate_lock

All tests were cache hits

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


Test

e2e/npm_translate_lock_empty

All tests were cache hits

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


Test

e2e/npm_translate_lock_multi

All tests were cache hits

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


Test

e2e/npm_translate_lock_partial_clone

All tests were cache hits

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


Test

e2e/npm_translate_lock_replace_packages

All tests were cache hits

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


Test

e2e/npm_translate_lock_subdir_patch

All tests were cache hits

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


Test

e2e/npm_translate_package_lock

All tests were cache hits

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


Test

e2e/npm_translate_yarn_lock

All tests were cache hits

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


Test

e2e/package_json_module

All tests were cache hits

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


Test

e2e/pnpm_lockfiles

All tests were cache hits

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


Test

e2e/pnpm_workspace

All tests were cache hits

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


Test

e2e/pnpm_workspace_rerooted

All tests were cache hits

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


Test

e2e/repo_mapping

All tests were cache hits

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


Test

e2e/rules_foo

All tests were cache hits

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


Test

e2e/runfiles

All tests were cache hits

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


Test

e2e/vendored_node

All tests were cache hits

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


Buildifier      Format

@jbedard jbedard force-pushed the js_run_devserver-isdirectory branch 4 times, most recently from fafb96b to 0985807 Compare June 27, 2025 05:10
@jbedard jbedard force-pushed the js_run_devserver-isdirectory branch from 0985807 to 7b4cd4b Compare June 27, 2025 05:18
@jbedard jbedard requested review from dzbarsky and thesayyn June 27, 2025 05:24
@jbedard jbedard marked this pull request as ready for review June 27, 2025 05:25
@jbedard jbedard force-pushed the js_run_devserver-isdirectory branch from 7b4cd4b to 133d3d3 Compare June 27, 2025 05:44
@jbedard jbedard force-pushed the js_run_devserver-isdirectory branch from 133d3d3 to 819793f Compare June 27, 2025 05:49
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.

That's clever

@jbedard jbedard merged commit 9ac4696 into aspect-build:main Jun 27, 2025
99 checks passed
@jbedard jbedard deleted the js_run_devserver-isdirectory branch June 27, 2025 19:48
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