Skip to content

ci: remove legacy Node.js CI workflow and harden systems.csv validation - #967

Merged
fredericsimard merged 2 commits into
masterfrom
ci/remove-nodejs-workflow/2026-12-03
Dec 4, 2026
Merged

fredericsimard merged 2 commits into
masterfrom
ci/remove-nodejs-workflow/2026-12-03

Conversation

@fredericsimard

Copy link
Copy Markdown
Contributor

What problem does your proposal solve? Please begin with the relevant issue number. If there is no existing issue, please also describe alternative solutions you have considered.

No existing issue. nodejs.yml (Node.js CI) still runs on Node 16 with actions/checkout@v3 and actions/setup-node@v3, and only checks that systems.csv parses (csval with no rules file). systems_csv_pr_checks.yml already validates the same file, with stricter checks, on every PR that changes it. This workflow was outdated.

Alternative considered: keep nodejs.yml and move it off Node 16. Not chosen, because it would keep a second, weaker check of the same file.

What is the proposal?

  • Remove .github/workflows/nodejs.yml.
  • Extend scripts/validate-systems-csv.js so it catches everything csval caught:
    • text after a closing quote ("Montreal"x)
    • a quote inside an unquoted value (Bi"xi)
    • lines containing only whitespace
    • a carriage return not followed by a line feed
    • mixed LF and CRLF line endings
  • Move all jobs in systems_csv_pr_checks.yml from Node 24 to Node 26 (LTS).

Pushes to master no longer run their own validation. Direct pushes to master are not allowed, so every change goes through a PR and is checked there.

Testing:

  • The current systems.csv passes (1,287 rows, 0 errors).
  • In 900,000 randomly malformed CSV files, csval never failed a file that the updated script passed.
  • The last 300 versions of systems.csv in git history get the same pass/fail results as with the previous script.
  • Tested locally on Node 22; this PR's CI run is the first on Node 26.

Is this a breaking change?

  • Yes
  • No
  • Unsure

The validator is stricter, so a malformed systems.csv that used to pass can now fail. None of the last 300 versions of the file would.

Which files are affected by this change?

  • .github/workflows/nodejs.yml (deleted)
  • .github/workflows/systems_csv_pr_checks.yml
  • scripts/validate-systems-csv.js

fredericsimard and others added 2 commits December 4, 2026 02:57
Remove .github/workflows/nodejs.yml (Node 16, csval). systems_csv_pr_checks.yml already validates systems.csv on every PR that changes it, and direct pushes to master are not allowed.

validate-systems-csv.js now also reports, so it covers everything csval checked:
- text after a closing quote ("Montreal"x)
- a quote inside an unquoted value (Bi"xi)
- lines containing only whitespace
- a carriage return not followed by a line feed
- mixed LF and CRLF line endings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Gk89bPMVWtnbSZQMRDbEYD
@fredericsimard fredericsimard self-assigned this Dec 4, 2026

@richfab richfab left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@fredericsimard
fredericsimard merged commit 09f998a into master Dec 4, 2026
3 checks passed
@fredericsimard
fredericsimard deleted the ci/remove-nodejs-workflow/2026-12-03 branch December 4, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants