Repository navigation
fleet: a dependency page and /fleet/deps.json - #6
Merged
Merged
Conversation
Reads deps.json from ci-builds' status branch. Picking a library shows what it depends on, what depends on it, and the waves its dependents have to be retagged in after a new tag. Also wraps the nav on narrow screens on both fleet pages, where the extra link pushed it wider than a phone.
Tools that roll a library release through its dependents read the graph from one stable URL. The site build copies it from ci-builds' status branch, keeping the deployed copy when that fetch fails or does not look like a graph, and an hourly scheduled build deploys only when it changed. The dependency page reads the same file.
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.html, which shows how the public jlt-commons and jolt-lang libraries depend on each other. Pick a library to see what it depends on, what depends on it, and the order its dependents have to be retagged in after it gets a new tag. A library that pins two others from the graph waits for the later one.
The same data is published at /fleet/deps.json for tools that roll a release through the graph. Each pin records its dependency symbol and its path in deps.edn, so an updater can rewrite exactly that coordinate. The site build copies the file from ci-builds' status branch (scripts/fetch-deps.mjs). If that fetch fails or the file doesn't look like a graph, it keeps the deployed copy. A new hourly schedule rebuilds the site, and deploys only when the graph changed.
The graph comes from the fleet:deps collector in ci-builds (yogthos/ci-builds branch deps-graph, not yet a PR). Until that is merged and its deps workflow has run, the page says the data could not be loaded and the build warns that deps.json is missing.
Also wraps the nav on narrow screens on both fleet pages, which hand-copy the nav. On a phone it was wider than the screen, and the new link made it worse. jlt-commons/docs-engine#15 fixes the engine-rendered pages. Once a docs-engine tag with that fix is in DOCS_ENGINE_REF, the override here can go.
Tests: node --test test/ (40 pass).