Skip to content

CI: Prepare the native-image notebook E2E job for the fork's GitHub Packages (#251) - #252

Merged
b-re-w merged 1 commit into
developfrom
feat/notebook-e2e-native-ci
Oct 17, 2026
Merged

b-re-w merged 1 commit into
developfrom
feat/notebook-e2e-native-ci

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 17, 2026

Copy link
Copy Markdown
Member

Refs #251. This PR does not close it: the job cannot run until the fork publishes.

Feature added:

  • The notebook-e2e fixture can read the fork's modules from a Maven URL (composeExtended.repository), as well as from mavenLocal.
    • It uses GITHUB_ACTOR/GITHUB_TOKEN credentials when they are set: GitHub Packages asks for a token even for a public package.
    • Only the fork's group at the fork's version is taken there.
  • desktop.yml gets a notebook-e2e-native-image job (macOS, Liberica NIK 25 via graalvm/setup-graalvm, permissions: packages: read).
    • It is skipped until the repository variable COMPOSE_EXTENDED_VERSION is set, so develop stays green before the fork publishes.
    • Optional variables: COMPOSE_EXTENDED_GROUP_PREFIX (default org.thisisthepy.compose) and COMPOSE_EXTENDED_REPOSITORY (default the core fork's GitHub Packages URL).
    • Token: the secret GH_PACKAGES_TOKEN when it exists, else GITHUB_TOKEN.
    • A first step fetches one known POM. On anything other than HTTP 200 it fails with an error naming the token used and telling you to add a read:packages PAT as GH_PACKAGES_TOKEN.
    • It then re-records the native-image configuration against that fork version, builds the image, and runs it: 20/20 and no libjvm.

Not verified: whether GITHUB_TOKEN can read the fork's packages. GitHub documents the Maven registry as repository-scoped only, so there is no per-package "Manage Actions access" for it; whether another repository's token reads a public package is not stated. The access check will say which on the first run.

Local check: the mavenLocal path still resolves the fork's 1.11.1001. The remote path is consulted, and fails today because nothing is published yet.

…ackages

The notebook-e2e fixture reads the fork's modules from a Maven URL as
well as mavenLocal (composeExtended.repository, credentials from
GITHUB_ACTOR/GITHUB_TOKEN). desktop.yml gets a notebook-e2e-native-image
job, skipped until the repository variable COMPOSE_EXTENDED_VERSION
names a published version. It uses the secret GH_PACKAGES_TOKEN when it
exists and GITHUB_TOKEN otherwise, checks one POM first and fails
naming the secret when the packages cannot be read, then records the
configuration, builds the image and runs it.

Refs #251
@b-re-w
b-re-w merged commit 20944cb into develop Oct 17, 2026
@b-re-w
b-re-w deleted the feat/notebook-e2e-native-ci branch October 17, 2026 13:09
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