Skip to content

test(action-plugin): expose missing package dependency inference - #16356

Open
rgrinberg wants to merge 1 commit into
ocaml:mainfrom
rgrinberg:push-xzwvwntrowyl
Open

rgrinberg wants to merge 1 commit into
ocaml:mainfrom
rgrinberg:push-xzwvwntrowyl

Conversation

@rgrinberg

Copy link
Copy Markdown
Member

Add a regression where a consumer dynamically reads a file installed by another package without declaring that package dependency. Strict package checks currently miss it both after execution and when inspecting a workspace-cached rule.

Also reproduce the missing inferred closure without strict_package_deps: the internal @.consumer-files alias omits the provider’s other installed file, whereas a static read of the same input includes it. This checks the package-files alias, not ordinary non-strict consumer.install generation.

Test only: the expectations record current broken behavior; no implementation changes are included.

Record strict package checks overlooking a dynamically read installed file,
both after execution and from the workspace cache.

Without strict checks, also show that the internal package-files alias omits
other installed files from the dynamically discovered provider package. A
static read of the same input includes them.

Record the current broken behavior without changing the implementation.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
> (target output)
> (action
> (with-stdout-to output
> (dynamic-run ./foo.exe read ../install/default/share/provider/input))))

@Alizter Alizter Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This doesn't work even for regular run because we no longer use the install staging area for package deps.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We also don't expand a package files alias any longer, so this test is a bit stale.

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