Skip to content

fix(licensing): acquire the local_acquire licence at fetch time and pass it by path - #264

Open
GPLeemrijse wants to merge 1 commit into
fix/local-user-licence-pathfrom
fix/local-acquire-licence-path
Open

GPLeemrijse wants to merge 1 commit into
fix/local-user-licence-pathfrom
fix/local-acquire-licence-path

Conversation

@GPLeemrijse

@GPLeemrijse GPLeemrijse commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Under local_acquire, the licence is now acquired at fetch time by one repository per licence protocol version (io_cocotec_licensing_fetch_<n>), using the host's cocotec-licensing-server and COCOTEC_AUTH_TOKEN (#260 adds COCOTEC_AUTH_TOKEN_FILE), and passed to popili by absolute path instead of as an action input. A fresh acquisition no longer changes every popili action's key, and the licence is re-acquired once per Bazel server. Toolchains select it only under local_acquire, so other modes fetch nothing; a failed acquisition doesn't fail the build, and the reason shows when popili runs.

Breaking: bring-your-own toolchains using local_acquire must set local_acquire_licenses = "@rules_coco//coco:local_acquire_licenses_<n>". fetch_license is removed.

A real acquisition is exercised only by CI's local_acquire jobs.

@GPLeemrijse
GPLeemrijse added this pull request to stack #259 November 6, 2026 00:28
@GPLeemrijse
GPLeemrijse force-pushed the fix/local-acquire-licence-path branch 2 times, most recently from 926d83f to 7b4d5d6 Compare November 6, 2026 16:22
@GPLeemrijse
GPLeemrijse marked this pull request as ready for review November 6, 2026 16:56
@GPLeemrijse
GPLeemrijse force-pushed the fix/local-acquire-licence-path branch from 7b4d5d6 to 93c4eca Compare November 6, 2026 17:10
@GPLeemrijse
GPLeemrijse removed this pull request from stack #259 November 6, 2026 17:20
@GPLeemrijse
GPLeemrijse changed the base branch from fix/auth-token-file to fix/local-user-licence-path November 6, 2026 17:20
@GPLeemrijse
GPLeemrijse force-pushed the fix/local-acquire-licence-path branch from 93c4eca to 5f1d0e6 Compare November 6, 2026 17:20
@GPLeemrijse
GPLeemrijse added this pull request to stack #268 November 6, 2026 17:20
@GPLeemrijse
GPLeemrijse requested a review from tomgr November 6, 2026 17:22
…ass it by path

Under local_acquire the licence is now acquired by one repository per licence
protocol version (io_cocotec_licensing_fetch_<n>), with the host's
cocotec-licensing-server, and popili gets it by absolute path through the
toolchain's new local_acquire_licenses attribute instead of as an action input.
A fresh acquisition therefore no longer changes every popili action's key.
The toolchains select the licence only under local_acquire, so other modes
fetch nothing.

Acquisition never fails the fetch, and popili gets the same path whether it
succeeded or not, so cached results survive a failure; the reason shows in the
action's progress message or the test's output. Bring-your-own toolchains must
set local_acquire_licenses, e.g. @rules_coco//coco:local_acquire_licenses_<n>,
under local_acquire. fetch_license is removed.
@GPLeemrijse
GPLeemrijse force-pushed the fix/local-acquire-licence-path branch from 5f1d0e6 to e852b9c Compare November 6, 2026 17:52
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