Skip to content

test: Generated _RocqProject files account for local plugins - #16556

Merged
Alizter merged 1 commit into
ocaml:mainfrom
Janno:janno/rocq-plugin-path
Oct 7, 2026
Merged

Alizter merged 1 commit into
ocaml:mainfrom
Janno:janno/rocq-plugin-path

Conversation

@Janno

@Janno Janno commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

This adds a failing test case that documents #16555

Checklist

  • Tests added, if applicable.
  • Change log entry added for any user-facing changes.
  • Documentation added for any user-facing changes.

@Janno

Janno commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Hm, the test failure is confusing. I think my branch is up to date and the test definitely succeeds locally with the findlib error pattern I am grepping for. Should I relax the test and only check that the commands fail?

@Janno
Janno force-pushed the janno/rocq-plugin-path branch from 9cec4f9 to 0d06e87 Compare October 7, 2026 11:39
@Alizter

Alizter commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

@Janno Could you share the full error? And are you using the nix flake like CI is or opam?

@Janno

Janno commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor Author

I just pushed a version that simply discards stderr.

And are you using the nix flake like CI is or opam?

I am using opam with a random but recent rocq snapshot (not a released version). Not the best basis for building robust test cases, unfortunately.

Could you share the full error?

Both commands fail with basically the same error modulo file names:

File "./Test.v", line 1, characters 0-39:
Error:
Findlib error: test-plugin.plugin not found in:
../_build/default/plugin
/home/janno/.opam/unicoq/lib/ocaml
/home/janno/.opam/unicoq/lib

(My opam switch is called unicoq)

@Alizter

Alizter commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

OK I think the failure with no message is good enough for now. I take it this PR is a preliminary one for a fix?

@Janno

Janno commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Yes, the fix is written and I'll open the next PR.

@Alizter
Alizter merged commit 273c5c5 into ocaml:main Oct 7, 2026
35 of 36 checks passed
@Alizter Alizter added this to the 3.26.0 milestone Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants