You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit 19955f0 tried to simplify the chdir logic in the launcher script, but this introduced a bug in js_test. I believe the logic was correct for js_binary and js_run_binary, since those execute in the target bin directory, but it did not work for js_test, which executes in the runfiles directory. I added a new test case to cover this situation.
Resolve package chdir from the child runfiles root
When a js_binary with chdir = package_name() is launched as a subprocess from another js_binary/js_test whose cwd has already been changed (for example the parent also uses chdir), this relative cd is evaluated against the inherited parent cwd, not against the child binary's runfiles workspace. The launcher only computes the child's RUNFILES from $0; it does not reset PWD before this point, so nested binaries with a package chdir can fail to start or run in the wrong package even though the path exists in the child's runfiles/bin tree.
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Commit 19955f0 tried to simplify the
chdirlogic in the launcher script, but this introduced a bug injs_test. I believe the logic was correct forjs_binaryandjs_run_binary, since those execute in the target bin directory, but it did not work forjs_test, which executes in the runfiles directory. I added a new test case to cover this situation.Fixes #2827.
Changes are visible to end-users: yes
Fixes #2827, a bug with
chdironjs_testintroduced in v3.1.0.Test plan