Skip to content

Allow libneo-gate dispatch (libneo_ref) in CI#48

Merged
krystophny merged 2 commits into
mainfrom
ci/libneo-dispatch-fast
Jun 15, 2026
Merged

Allow libneo-gate dispatch (libneo_ref) in CI#48
krystophny merged 2 commits into
mainfrom
ci/libneo-dispatch-fast

Conversation

@krystophny

Copy link
Copy Markdown
Member

Completes NEO-RT's side of libneo's per-PR reverse-dependency gate (report-only downstream).

The gate dispatches NEO-RT's test.yml with -f libneo_ref=<sha> and expects only the fast tests.

  • test.yml already accepts the libneo_ref workflow_dispatch input and sets LIBNEO_REF from it; LIBNEO_REF propagates through the NEO-2 dependency to the transitive libneo fetch (cmake/Util.cmake find_or_fetch resolves <DEP>_REF to the FetchContent GIT_TAG, validated against the remote). In the default standalone build NEO-RT does not compile libneo directly, which is why the gate keeps NEO-RT report-only; the env var is wired so the candidate ref reaches libneo once NEO-2 is built.
  • This change makes a dispatched run execute only the fast make ctest tier and skip the slow golden-record pytest. The golden suite stays on NEO-RT's own push/PR runs. Push/PR behavior is unchanged.

Tracking itpplasma/code#55, gated by itpplasma/libneo#278.

The libneo reverse-dependency gate dispatches this workflow (report-only)
with -f libneo_ref to fast-gate a candidate libneo. Skip the slow
golden-record pytest on workflow_dispatch and run only make ctest; the
golden suite stays on NEO-RT's own push/PR runs. LIBNEO_REF already
propagates the candidate ref through the NEO-2 dependency.
Remove $ENV{<DEP>_REF} read from find_or_fetch: cmake cache variable
-DLIBNEO_REF=<ref> is the only override path. An LIBNEO_REF set in the
developer's shell can no longer silently alter which libneo ref is fetched.

Makefile unexports LIBNEO_REF so make itself does not import it from the
environment, and forwards only an explicit command-line value as
-DLIBNEO_REF=$(LIBNEO_REF) to cmake.

Workflow removes the top-level env: LIBNEO_REF block and passes the
dispatch input explicitly: make ... LIBNEO_REF=${{ inputs.libneo_ref }}.

README documents -DLIBNEO_REF=<ref> / make LIBNEO_REF=<ref>.
@krystophny krystophny merged commit 23efb15 into main Jun 15, 2026
2 checks passed
@krystophny krystophny deleted the ci/libneo-dispatch-fast branch June 15, 2026 21:02
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.

1 participant