Repository navigation
fix(ci): fix bash syntax error and regex bug in conventions workflow - #456
Conversation
The gh pr comment --body argument was missing its closing double quote, causing bash to consume the fi and exit statements as part of the string literal and fail with unexpected EOF. Signed-off-by: Sébastien Han <[email protected]>
|
Missing Signed-off-by: 3b34dba. All commits require sign-off (via |
|
the workflow uses pull_request_target so it pulls the broken code to test the pr, that's why the workflow continues to fail, after this merges this should be fine |
jq uses Oniguruma where the "m" flag makes . match newlines, not make ^ match at line boundaries (that is PCRE behavior). Use the inline (?m) flag instead so ^Signed-off-by: matches at the start of any line in a multiline commit message. Signed-off-by: Sébastien Han <[email protected]>
praxis-bot
left a comment
There was a problem hiding this comment.
Review: fix(ci): fix bash syntax error and regex bug in conventions workflow
Overall assessment: Clean, correct, minimal fix for two real bugs. Ship it.
Summary
Both fixes are correct and well-documented:
-
signoff-check regex (
(?m)inline flag): jq uses Oniguruma, where the"m"second argument totest()makes.match newlines (equivalent to PCRE'ssflag), but does NOT make^match at line boundaries. The inline(?m)flag correctly enables multiline anchoring in Oniguruma, so^Signed-off-by:matches at the start of any line in a multi-line commit message. Correct fix. -
ai-authorship-check closing quote: The
--bodystring opened at line 313 was never closed, causing bash to consumefi,echo,exit 1, and the outerfias part of the string literal. Every PR that reached this code path failed withunexpected EOF while looking for matching ". Adding the closing"restores the intended if/fi control flow structure.
Findings
| Severity | Count |
|---|---|
| Critical | 0 |
| Large | 0 |
| Medium | 0 |
| Small | 0 |
| Nit | 0 |
No issues found. The changes are minimal, targeted, and correct.
Notes
- The other
test(...; "i")calls in the ai-authorship-check jq block are not affected by this Oniguruma semantics difference: the"i"(case-insensitive) flag behaves identically across engines. - The
$CREDITand$ANY_TRAILERregexes in the ai-authorship block also use^, but they operate on individual lines fromsplit("\n")[], so start-of-string anchoring is correct there. - As the PR notes, both checks use
pull_request_target, so the broken scripts onmainrun against this PR. The fixes cannot self-validate until merged.
…raxis-proxy#456) Signed-off-by: Sébastien Han <[email protected]>
…raxis-proxy#456) Signed-off-by: Sébastien Han <[email protected]>
* feat(website): add project website Docusaurus 3 site with landing page, documentation, examples showcase, and blog. The website builds and deploys directly from this repository via GitHub Actions. Docs live in docs/ as the single source of truth. The site is served at praxis.fast through GitHub Pages. - Landing page with animated filter pipeline visualization - Documentation restructured into categories with sidebar icons - Interactive examples page with 82 YAML configs and overlay viewer - Blog with editorial post styling - Local search, responsive design, dark theme - GitHub Actions workflow for automated deployment on push to main Fixes praxis-proxy/praxis-proxy.github.io#1 Signed-off-by: Sébastien Han <[email protected]> * fix(ci): fix bash syntax error and regex bug in conventions workflow (#456) Signed-off-by: Sébastien Han <[email protected]> --------- Signed-off-by: Sébastien Han <[email protected]> Co-authored-by: Shane Utt <[email protected]>
* fix(ci): fix bash syntax error and regex bug in conventions workflow (#456) Signed-off-by: Sébastien Han <[email protected]> * docs(filter): add build-time filter registry proposal Propose a build.rs + cargo metadata discovery mechanism that lets external filter crates self-register into the FilterRegistry at build time. Operators add a Cargo.toml dependency and write YAML config with zero Rust code changes to Praxis. Signed-off-by: Sébastien Han <[email protected]> * docs(filter): remove How? section per proposal guidelines Submit What? and Why? first. How? will be added in a follow-up after the proposal direction is accepted. Also add missing discussion field to frontmatter. Signed-off-by: Sébastien Han <[email protected]> * docs(filter): address PR review feedback Remove remaining em-dashes per project conventions. Clarify that auto-registered duplicates panic because there is no caller to propagate the Result to, while manual registry.register() continues to return Result. Add boundary note distinguishing filter registration from plugin/hook discovery (#63). Signed-off-by: Sébastien Han <[email protected]>
…raxis-proxy#456) Signed-off-by: Sébastien Han <[email protected]>
* feat(website): add project website Docusaurus 3 site with landing page, documentation, examples showcase, and blog. The website builds and deploys directly from this repository via GitHub Actions. Docs live in docs/ as the single source of truth. The site is served at praxis.fast through GitHub Pages. - Landing page with animated filter pipeline visualization - Documentation restructured into categories with sidebar icons - Interactive examples page with 82 YAML configs and overlay viewer - Blog with editorial post styling - Local search, responsive design, dark theme - GitHub Actions workflow for automated deployment on push to main Fixes praxis-proxy/praxis-proxy.github.io#1 Signed-off-by: Sébastien Han <[email protected]> * fix(ci): fix bash syntax error and regex bug in conventions workflow (praxis-proxy#456) Signed-off-by: Sébastien Han <[email protected]> --------- Signed-off-by: Sébastien Han <[email protected]> Co-authored-by: Shane Utt <[email protected]>
* fix(ci): fix bash syntax error and regex bug in conventions workflow (praxis-proxy#456) Signed-off-by: Sébastien Han <[email protected]> * docs(filter): add build-time filter registry proposal Propose a build.rs + cargo metadata discovery mechanism that lets external filter crates self-register into the FilterRegistry at build time. Operators add a Cargo.toml dependency and write YAML config with zero Rust code changes to Praxis. Signed-off-by: Sébastien Han <[email protected]> * docs(filter): remove How? section per proposal guidelines Submit What? and Why? first. How? will be added in a follow-up after the proposal direction is accepted. Also add missing discussion field to frontmatter. Signed-off-by: Sébastien Han <[email protected]> * docs(filter): address PR review feedback Remove remaining em-dashes per project conventions. Clarify that auto-registered duplicates panic because there is no caller to propagate the Result to, while manual registry.register() continues to return Result. Add boundary note distinguishing filter registration from plugin/hook discovery (praxis-proxy#63). Signed-off-by: Sébastien Han <[email protected]>
Summary
Fixes two bugs in the conventions CI workflow:
ai-authorship-check: The
gh pr comment --bodyargument was missing its closing double quote, causing bash to consume thefiand subsequent statements as part of the string literal, failing withunexpected EOF while looking for matching "(exit code 2) on every PR.signoff-check: The jq regex
test("^Signed-off-by: "; "m")never matches multiline commit messages because jq uses Oniguruma, where the"m"flag makes.match newlines — it does not make^match at line boundaries (that's PCRE behavior). Changed to the inline(?m)flag so^Signed-off-by:correctly anchors to the start of any line.Note: Both checks use
pull_request_target, so the broken scripts onmainrun against this PR — the fixes cannot self-validate until merged.Signed-off-by: Sébastien Han [email protected]