Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 23 additions & 0 deletions .github/workflows/current-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ name: Current research site
- 'tools/current_site_history.py'
- 'tools/current_site_publication.py'
- 'tests/test_current_site*'
- 'tools/node_status_refresh.py'
- 'tests/test_node_status_refresh.py'
- 'tests/fixtures/node_status_refresh/**'
- '.github/workflows/current-site.yml'
schedule:
- cron: '*/30 * * * *'
Expand Down Expand Up @@ -41,6 +44,26 @@ jobs:
python3 -B -O -S -m unittest discover -s tests -p 'test_current_site*.py' -v
node --test tests/test_current_site.mjs

node-status-refresh:
# LANES-20261022 Lane 3: report-only freshness of records/node_status.
# Non-blocking: never gates build/deploy, writes nothing, freshness is not scientific validity.
runs-on: ubuntu-24.04
timeout-minutes: 10
continue-on-error: true
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- name: Offline freshness tests
run: python3 -B -m unittest tests.test_node_status_refresh
- name: Report-only freshness refresh (read-only GitHub API)
if: github.event_name != 'pull_request'
env:
GITHUB_TOKEN: ${{ github.token }}
run: python3 -B -S tools/node_status_refresh.py records/node_status | tee -a "$GITHUB_STEP_SUMMARY"

build:
needs: controls
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && github.repository == 'd6g8k5htny-coder/main'
Expand Down
7 changes: 7 additions & 0 deletions tests/fixtures/node_status_refresh/current_revs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"https://github.com/d6g8k5htny-coder/main/blob/1111111111111111111111111111111111111111/a.md": "1111111111111111111111111111111111111111",
"https://github.com/d6g8k5htny-coder/main/blob/2222222222222222222222222222222222222222/b.md": "3333333333333333333333333333333333333333",
"https://github.com/d6g8k5htny-coder/main/issues/475": "2026-10-22T18:00:00Z",
"https://github.com/d6g8k5htny-coder/main/pull/490": "2026-10-22T12:00:00Z",
"https://github.com/d6g8k5htny-coder/Math-/pull/463#issuecomment-6198606495": "2026-10-15T17:50:29Z"
}
18 changes: 18 additions & 0 deletions tests/fixtures/node_status_refresh/fresh.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"missing_input": [],
"next_action": "review",
"node_id": "fresh",
"observed_at": "2026-10-22T00:00:00Z",
"owner": null,
"schema_version": 0,
"scientific_effect": "NONE",
"source_rev": "1111111111111111111111111111111111111111",
"sources": [
{
"rev": "1111111111111111111111111111111111111111",
"url": "https://github.com/d6g8k5htny-coder/main/blob/1111111111111111111111111111111111111111/a.md"
}
],
"status": "fresh",
"stops": []
}
18 changes: 18 additions & 0 deletions tests/fixtures/node_status_refresh/issue.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"missing_input": [],
"next_action": "review",
"node_id": "issue",
"observed_at": "2026-10-22T00:00:00Z",
"owner": null,
"schema_version": 0,
"scientific_effect": "NONE",
"source_rev": "2026-10-22T17:00:00Z",
"sources": [
{
"rev": "2026-10-22T17:00:00Z",
"url": "https://github.com/d6g8k5htny-coder/main/issues/475"
}
],
"status": "fresh",
"stops": []
}
18 changes: 18 additions & 0 deletions tests/fixtures/node_status_refresh/stale.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"missing_input": [],
"next_action": "review",
"node_id": "stale",
"observed_at": "2026-10-22T00:00:00Z",
"owner": null,
"schema_version": 0,
"scientific_effect": "NONE",
"source_rev": "2222222222222222222222222222222222222222",
"sources": [
{
"rev": "2222222222222222222222222222222222222222",
"url": "https://github.com/d6g8k5htny-coder/main/blob/2222222222222222222222222222222222222222/b.md"
}
],
"status": "fresh",
"stops": []
}
18 changes: 18 additions & 0 deletions tests/fixtures/node_status_refresh/unknown.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"missing_input": [],
"next_action": "review",
"node_id": "unknown",
"observed_at": "2026-10-22T00:00:00Z",
"owner": null,
"schema_version": 0,
"scientific_effect": "NONE",
"source_rev": "4444444444444444444444444444444444444444",
"sources": [
{
"rev": "4444444444444444444444444444444444444444",
"url": "https://github.com/d6g8k5htny-coder/Math-/blob/4444444444444444444444444444444444444444/c.md"
}
],
"status": "fresh",
"stops": []
}
Loading