Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ef78e09
fleet: version helpers and fleet.json, with tests
burinc Nov 20, 2026
13e5e02
fleet: installed_version without per-line forks, strict parse_pin
burinc Nov 20, 2026
b5b81a0
fanout: read fleet.json, prove the installed jolt, upload results.json
burinc Nov 20, 2026
9da897d
fanout: say why a job log could not be fetched
burinc Nov 20, 2026
106e378
fanout: allow escape sequences in job logs
burinc Nov 20, 2026
ced3bf7
fanout: a run proves the requested jolt if any job installed it (pick…
burinc Nov 20, 2026
0aa29e9
fleet: build status.json and history.json from run results
burinc Nov 20, 2026
0bff13e
fleet: strip v from --latest, dedupe history by run_url
burinc Nov 20, 2026
5c91513
fleet: collect own-pin results and uncovered repos
burinc Nov 20, 2026
58cae55
fleet: collect-uncovered only treats HTTP 404 as missing, fails loud …
burinc Nov 20, 2026
45a059f
canary: poll every 15 minutes and publish fleet status
burinc Nov 20, 2026
eecd418
fleet: keep previous jolt.nightly on null nightly-json; record vnight…
burinc Nov 20, 2026
a4c2ea7
canary: stable nightly note in status.json, skip artifact download on…
burinc Nov 20, 2026
2431787
fanout: a failed dependency download is infra, not a jolt break
burinc Nov 20, 2026
85b8896
fanout: classify infra per failed step and per job; canary issue name…
burinc Nov 20, 2026
5702e95
fleet: version, status and GitHub client in jolt (part 1 of the port)
burinc Nov 20, 2026
b093efa
fleet: collectors, publish, refresh and the fleet:* tasks in jolt (pa…
burinc Nov 20, 2026
23bbda2
fleet: status build accepts a null pin so one non-literal JOLT_VERSIO…
burinc Nov 20, 2026
25527fe
fanout: the dispatch-and-wait loop in jolt
burinc Nov 20, 2026
1746e8e
fanout: no-run-appeared is dispatch-failed, per-project errors do not…
burinc Nov 20, 2026
91514ab
canary: plan and issue logic in jolt
burinc Nov 20, 2026
1e4d1c0
fleet: drop the bash tooling now that jolt runs it
burinc Nov 20, 2026
7abb263
canary: gated ticks do not reset the interval, junk vars warn, unreso…
burinc Nov 20, 2026
598cb0e
fleet: add ensemble, ebb, docs-engine, raylib-jolt-demo, raylib-ios-demo
burinc Nov 20, 2026
f8da952
canary: retry backoff for a known-bad version set, dispatch-failed re…
burinc Nov 20, 2026
36c4bfa
fanout: unreadable logs are infra, cancelled runs are not-run, the po…
burinc Nov 20, 2026
b97fb21
status: an unreadable read keeps the previous cell and reason, and a …
burinc Nov 20, 2026
6484977
workflows: report is skipped on cancel, artifact downloads cannot sto…
burinc Nov 20, 2026
6b8eb83
docs: comments and docstrings describe current behaviour, not inciden…
burinc Nov 20, 2026
4e5cb48
fanout: untested and undispatched projects are could-not-run, never a…
burinc Nov 20, 2026
51e2c8e
docs: the fleet dashboard, the jolt tooling and the 15-minute canary
burinc Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
507 changes: 221 additions & 286 deletions .github/workflows/canary.yml

Large diffs are not rendered by default.

312 changes: 116 additions & 196 deletions .github/workflows/fanout.yml

Large diffs are not rendered by default.

34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: test

on:
push:
# The status branch holds data files only.
branches-ignore: [status]
pull_request:

permissions:
contents: read

env:
# The tool jolt: runs the fleet tools and their tests. Pinned so a release
# published overnight can't turn this red on an untouched tree. This is not
# the jolt the fleet is tested against.
TOOLS_JOLT_VERSION: ${{ vars.TOOLS_JOLT_VERSION || '0.8.27' }}

jobs:
jolt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: jlt-commons/setup-jolt@v1
with:
version: ${{ env.TOOLS_JOLT_VERSION }}
- uses: actions/cache@v6.1.0
with:
path: ~/.jolt/gitlibs
key: jolt-gitlibs-${{ hashFiles('deps.edn') }}
# jolt.yaml loads libyaml. Install it when the runner image lacks it, so
# an image change cannot turn this red for a reason unrelated to the tree.
- run: |
dpkg -s libyaml-0-2 >/dev/null 2>&1 || { sudo apt-get update && sudo apt-get install -y libyaml-0-2; }
- run: jolt test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.jolt/
369 changes: 212 additions & 157 deletions README.md

Large diffs are not rendered by default.

65 changes: 65 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
;; deps.edn: the fleet dashboard tools, plain Clojure run by jolt as
;; `jolt <task>`. The git shas below are the heads of main, measured
;; 2026-11-20 with git ls-remote. babashka.process, babashka.fs,
;; cheshire.core and clojure.test come bundled with jolt.
{:paths ["src" "test" "resources"]
:deps {io.github.jolt-lang/http-client {:git/url "https://github.com/jolt-lang/http-client.git"
:git/sha "03267126e0bebe172936e9618b9ff6cd678edaac"}
io.github.jolt-lang/yaml {:git/url "https://github.com/jolt-lang/yaml.git"
:git/sha "ecbeb028bd319cbcccce6de83eca8eae5fedc7f4"}
io.github.jolt-lang/time {:git/url "https://github.com/jolt-lang/time.git"
:git/sha "6c12a58d08586ca60421099d2d3d0bcd473238ac"}}

:tasks {test {:doc "Run every fleet.*-test namespace; exit 1 on any failure or error"
:requires ([clojure.test :as t]
[fleet.canary-test]
[fleet.cli-test]
[fleet.collect-test]
[fleet.fanout-test]
[fleet.github-test]
[fleet.publish-test]
[fleet.refresh-test]
[fleet.status-test]
[fleet.version-test])
:task (let [{:keys [fail error]} (t/run-tests 'fleet.canary-test
'fleet.cli-test
'fleet.collect-test
'fleet.fanout-test
'fleet.github-test
'fleet.publish-test
'fleet.refresh-test
'fleet.status-test
'fleet.version-test)]
(when (pos? (+ fail error)) (System/exit 1)))}

fleet:plan {:doc "Canary plan job: decide what to test (env: REQUESTED EVENT INTERVAL_HOURS NIGHTLY_MAX_AGE_HOURS GITHUB_REPOSITORY GH_TOKEN GITHUB_OUTPUT); --final combines the gates (env: INTERVAL_OK ALREADY_GREEN REASON KEY)"
:requires ([fleet.cli :as cli])
:task (System/exit (cli/plan-main *command-line-args*))}

fleet:report {:doc "Canary report job: open, update or close the canary issue from results/*/results.json [dir] (env: RESULT VERSIONS NIGHTLY RUN_URL GITHUB_REPOSITORY GITHUB_RUN_ID GH_TOKEN)"
:requires ([fleet.cli :as cli])
:task (System/exit (cli/report-main *command-line-args*))}

fleet:fanout {:doc "Dispatch every fleet project against a jolt version and wait: [version] (blank = latest release; env: GH_TOKEN, FLEET_JSON)"
:requires ([fleet.cli :as cli])
:task (System/exit (cli/fanout-main *command-line-args*))}

fleet:own-pin {:doc "Print each fleet project's latest push run and pin as JSON (env: GH_TOKEN, FLEET_JSON)"
:requires ([fleet.cli :as cli])
:task (System/exit (cli/own-pin-main *command-line-args*))}

fleet:uncovered {:doc "Print the org repos the fleet does not cover, with reasons, as JSON"
:requires ([fleet.cli :as cli])
:task (System/exit (cli/uncovered-main *command-line-args*))}

fleet:status {:doc "Merge results into status.json and history.json: --prev-status F --prev-history F --own-pin F --uncovered F --latest V --nightly-json J|null --canary-run URL --now ISO --out-dir D [results.json ...]"
:requires ([fleet.cli :as cli])
:task (System/exit (cli/status-main *command-line-args*))}

fleet:refresh {:doc "Collect, merge and write <out-dir>/status.json and history.json [results.json ...] (env: LATEST NIGHTLY_JSON CANARY_RUN, PREV_DIR)"
:requires ([fleet.cli :as cli])
:task (System/exit (cli/refresh-main *command-line-args*))}

fleet:publish {:doc "Refresh and commit to origin's status branch: <out-dir> [results.json ...] (env: LATEST NIGHTLY_JSON CANARY_RUN)"
:requires ([fleet.cli :as cli])
:task (System/exit (cli/publish-main *command-line-args*))}}}
6 changes: 6 additions & 0 deletions fleet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{"projects": ["glitter", "glitter-gl", "glitter-uikit", "raygui-jlt", "raylib-jlt", "raylib-ios", "raylib-android", "ensemble", "ebb", "docs-engine"],
"excluded": {"jolt-lsp": "its dispatch input releases jolt-lsp; needs a jolt-version input first",
"ci-builds": "this repository",
"demo-repository": "private demo",
"raylib-jolt-demo": "waiting on the jlt-commons-ci App installation",
"raylib-ios-demo": "waiting on the jlt-commons-ci App installation"}}
Loading