interplane.Get Omega
Read in your language

aienos.com

Source of www.aienos.com, served from my own hardware

Brought by drakestapleton

branch main Branches Tags History

aienos.com / .github / workflows / generated-allen.yml

144 lines · 6082 bytes Raw Blame History
1name: Generated Aien artifacts
2on:
3 pull_request:
4 paths:
5 - 'om/allen-page/**'
6 - 'om/aien-universe/**'
7 - 'om/allen-panes/**'
8 - 'om/allen-scene/**'
9 - 'public/js/allen*.js'
10 - 'public/js/aien-universe.js'
11 - 'public/assets/allen*.css'
12 - 'public/js/aien-speed.js'
13 - 'public/assets/aien-speed.css'
14 - 'public/allen/**'
15 - 'crates/site-builder/**'
16 - 'scripts/allen/a2a.py'
17 - 'scripts/allen/test_a2a.py'
18 - 'scripts/allen/allen_chat.py'
19 - 'scripts/allen/nginx-allen-location.conf'
20 - 'scripts/allen/nginx-allen-zones.conf'
21 - 'om/site/**'
22 - 'scripts/test-site-routes.py'
23 - 'scripts/test-site-browser.mjs'
24 - '.github/workflows/generated-allen.yml'
25 push:
26 branches: [main]
27 paths:
28 - 'om/allen-page/**'
29 - 'om/aien-universe/**'
30 - 'om/allen-panes/**'
31 - 'om/allen-scene/**'
32 - 'public/js/allen*.js'
33 - 'public/js/aien-universe.js'
34 - 'public/assets/allen*.css'
35 - 'public/js/aien-speed.js'
36 - 'public/assets/aien-speed.css'
37 - 'public/allen/**'
38 - 'crates/site-builder/**'
39 - 'scripts/allen/a2a.py'
40 - 'scripts/allen/test_a2a.py'
41 - 'scripts/allen/allen_chat.py'
42 - 'scripts/allen/nginx-allen-location.conf'
43 - 'scripts/allen/nginx-allen-zones.conf'
44 - 'om/site/**'
45 - 'scripts/test-site-routes.py'
46 - 'scripts/test-site-browser.mjs'
47 - '.github/workflows/generated-allen.yml'
48permissions:
49 contents: read
50jobs:
51 artifact-hashes:
52 runs-on: ubuntu-latest
53 steps:
54 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
55 # These tests only hash and read committed bytes; never execute the arm64 omc pin.
56 - name: Check the /aien/ page, its generated scripts and stylesheet
57 run: cargo test --manifest-path crates/site-builder/Cargo.toml components::allen::tests
58 - name: Check generated speed-test component
59 run: cargo test --manifest-path crates/site-builder/Cargo.toml components::speed::tests
60 # The whole site-builder suite and the site build for a pull request, so a
61 # change can be tested and previewed without the Spark. The built site is a
62 # workflow artifact (aienos-dist); nothing here publishes.
63 site:
64 # om/site/omc is an aarch64 binary, as in pages.yml.
65 runs-on: ubuntu-24.04-arm
66 steps:
67 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
68 with:
69 persist-credentials: false
70 fetch-depth: 0
71 - name: Lay in the live ledger from the data/now branch
72 run: |
73 set -euo pipefail
74 mkdir -p public/data
75 if git fetch --depth 1 origin data/now 2>/dev/null; then
76 for f in now.tsv now-pulse.tsv models.tsv claude-usage.tsv accounts.tsv routing.tsv; do
77 if git cat-file -e "FETCH_HEAD:$f" 2>/dev/null; then
78 git show "FETCH_HEAD:$f" > "public/data/$f"
79 fi
80 done
81 fi
82 - name: Site-builder suite
83 run: cargo test --release --manifest-path crates/site-builder/Cargo.toml
84 # The site is generated by Omega (om/site), exactly as pages.yml does,
85 # and checked by the Omega verifier and the independent Rust oracle.
86 - name: Build and verify the site
87 run: |
88 set -euo pipefail
89 mkdir -p build
90 om/site/omc < om/site/build.om > build/build-tool
91 chmod +x build/build-tool
92 build/build-tool om/site/modules.txt build/site
93 build/build-tool om/site/verify.manifest build/verify
94 build/verify --sources
95 build/site "$PWD" "$PWD/dist" "$(git log -1 --format=%cI)"
96 build/verify dist data/quotes.json public/data/engineer.json
97 cargo run --release --manifest-path crates/site-builder/Cargo.toml -- verify dist
98 - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
99 with:
100 name: aienos-dist
101 path: dist
102 retention-days: 7
103 # The built site served as static files: the old sitemap and every internal
104 # link (no 404s), then pages, the door, the consent dialog and phone-profile
105 # performance in headless Chrome. om/site/omc is arm64 and ubuntu-latest
106 # carries Chrome, so this job takes the site job's artifact.
107 browser:
108 needs: site
109 runs-on: ubuntu-latest
110 steps:
111 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
112 with:
113 persist-credentials: false
114 - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
115 with:
116 name: aienos-dist
117 path: dist
118 - name: Old-sitemap crawl and browser checks
119 run: |
120 set -euo pipefail
121 python3 scripts/serve-like-hub.py --dir dist --port 18977 > /tmp/http.log 2>&1 &
122 for i in $(seq 50); do curl -fsS -o /dev/null http://127.0.0.1:18977/ 2>/dev/null && break; sleep 0.2; done
123 mkdir -p reports
124 python3 scripts/test-site-routes.py --base http://127.0.0.1:18977 --dist dist --old-sitemap om/site/old-sitemap.xml --edge-base https://www.aienos.com --report reports/crawl.json
125 node --version
126 google-chrome --version
127 node scripts/test-site-browser.mjs --base http://127.0.0.1:18977 --chrome "$(command -v google-chrome)" --report reports/browser.json
128 - if: always()
129 uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
130 with:
131 name: aienos-site-reports
132 path: reports
133 if-no-files-found: ignore
134 retention-days: 7
135 # The introduce A2A door. Python standard library only, so this does not
136 # build the site. Path filters above also schedule the site job.
137 a2a:
138 runs-on: ubuntu-latest
139 steps:
140 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
141 with:
142 persist-credentials: false
143 - name: A2A SendMessage tests
144 run: python3 scripts/allen/test_a2a.py