Skip to content

Conversation

@Mivr
Copy link
Collaborator

@Mivr Mivr commented Sep 18, 2025

Changes are visible to end-users: no

Test plan

  • New test cases added

Fixes: #2345

@aspect-workflows
Copy link

aspect-workflows bot commented Sep 18, 2025

Test

2 test targets passed

Targets
//npm/private:_test_gendocs_0_0 [k8-fastbuild] 63ms
//npm/private:_test_gendocs_0_1 [k8-fastbuild] 60ms

Total test execution time was 123ms. 291 tests (99.3%) were fully cached saving 38s.


Test

e2e/bzlmod

All tests were cache hits

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


Test

e2e/git_dep_metadata

All tests were cache hits

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


Test

e2e/gyp_no_install_script

All tests were cache hits

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


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

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


Test

e2e/npm_link_package-esm

All tests were cache hits

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


Test

e2e/npm_link_package-rerooted

All tests were cache hits

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


Test

e2e/npm_translate_lock

All tests were cache hits

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


Test

e2e/npm_translate_lock_disable_hooks

All tests were cache hits

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


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_exclude_package_contents

All tests were cache hits

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


Test

e2e/npm_translate_lock_multi

All tests were cache hits

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


Test

e2e/npm_translate_lock_partial_clone

All tests were cache hits

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


Test

e2e/npm_translate_lock_replace_packages

All tests were cache hits

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


Test

e2e/npm_translate_lock_subdir_patch

All tests were cache hits

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


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 348ms.


Test

e2e/patch_from_repo

All tests were cache hits

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


Test

e2e/pnpm_lockfiles

All tests were cache hits

67 tests (100.0%) were fully cached saving 9s.


Test

e2e/pnpm_repo_install

All tests were cache hits

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


Test

e2e/pnpm_workspace

All tests were cache hits

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


Test

e2e/pnpm_workspace_deps

All tests were cache hits

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


Test

e2e/pnpm_workspace_rerooted

All tests were cache hits

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


Test

e2e/repo_mapping

All tests were cache hits

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


Test

e2e/rules_foo

All tests were cache hits

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


Test

e2e/runfiles

All tests were cache hits

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


Test

e2e/stamped_package_json

All tests were cache hits

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


Test

e2e/vendored_node

All tests were cache hits

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


Test

e2e/vendored_tarfile

All tests were cache hits

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


Test

e2e/verify_patches

All tests were cache hits

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


Test

e2e/worker

All tests were cache hits

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


Test

e2e/workspace

All tests were cache hits

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


Buildifier      Format

@jbedard
Copy link
Member

jbedard commented Sep 22, 2025

Can we demonstrate the changes to the generated code in a write_source_files test? It would be great if the e2e/pnpm_lockfiles/*/snapshots/defs.bzl files (or similar in other e2e tests) had a diff demonstrating the changes here...

@Mivr Mivr force-pushed the 2345-bugfix-visibility-of-packages-when-using-local-reference branch from 5b0d804 to 45b455a Compare September 29, 2025 16:24
@Mivr Mivr force-pushed the 2345-bugfix-visibility-of-packages-when-using-local-reference branch 2 times, most recently from 14f06eb to efbc714 Compare October 8, 2025 19:26
@Mivr Mivr force-pushed the 2345-bugfix-visibility-of-packages-when-using-local-reference branch from 8b50c6d to c4ef65d Compare October 14, 2025 13:06
@Mivr Mivr force-pushed the 2345-bugfix-visibility-of-packages-when-using-local-reference branch from 951ff40 to b317c7a Compare October 16, 2025 09:29
@Mivr Mivr force-pushed the 2345-bugfix-visibility-of-packages-when-using-local-reference branch from b317c7a to c86a442 Compare October 24, 2025 05:59
@Mivr Mivr force-pushed the 2345-bugfix-visibility-of-packages-when-using-local-reference branch from 84eeffa to 7e60eba Compare October 30, 2025 18:15
@jbedard jbedard merged commit 0ed387a into aspect-build:main Oct 30, 2025
102 checks passed
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.

[Bug]: npm_translate_lock's package_visibility not honored when the would-be-hidden package is imported from a package-local package.json

2 participants