Repository navigation
deps: collect the library dependency graph into deps.json - #12
Merged
Merged
Conversation
fleet:deps reads the root deps.edn, tags and default branch head of every public jlt-commons and jolt-lang repository in one GraphQL query per page, and records which library pins which, whether each pin is on the latest release, and for each library the waves its dependents have to be retagged in. A new deps workflow publishes it hourly to the status branch next to status.json. publish! now takes the file set it commits, so the two jobs leave each other's files alone.
…anch An updater needs to find the coordinate it is rewriting, so every pin keeps its dependency symbol and the keys leading to it in deps.edn.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds fleet:deps. It maps which library pins which across every public jlt-commons and jolt-lang repository. When a library gets a new tag, it shows everything that has to follow it and in what order. If B pins A and C pins B, a new A means B moves its pin and retags, then C moves to the new B. Libraries are grouped in waves that can each be released together. A library that pins two libraries from the graph waits for the later one.
It reads each repo's root deps.edn, tags and default branch head with one GraphQL query per 25 repos, which takes about 16 seconds for both orgs. Each pin is marked current, behind or unknown against the library's latest semver tag, or its head if it has none. A bare sha on a tagged library that matches no tag is checked with the compare API, because it can sit after the last release. Each pin also records its dependency symbol and its path in deps.edn, so an update tool can rewrite exactly that coordinate. The README documents the fields.
A new deps workflow runs hourly and commits deps.json to the status branch next to status.json. publish! now takes the file list it commits, so the canary and this job leave each other's files alone. The workflow token is enough here, since everything read is public.
The site reads the file in jlt-commons/jlt-commons.github.io#6 and serves it at https://jlt-commons.github.io/fleet/deps.json. Once this is merged, run
gh workflow run deps.yml --repo jlt-commons/ci-buildsto produce the first copy.Tests: jolt test (239 pass).