Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Description

Adds unit tests for the shell scripts used by the documentation sync workflow (sync-docs-from-node.yml) to prevent regressions when updating the docs synchronization logic.

Changes

New test files (using bats-core):

  • version-utils.bats - 18 tests for version validation (SemVer formats, prerelease, build metadata)
  • sanitize-config.bats - 6 tests for config sanitization (RPC URL replacement, dev section removal)
  • sanitize-docker-compose.bats - 6 tests for docker-compose sanitization (alloy service removal)
  • sync.bats - 19 tests for file sync logic (add/update/delete, pattern filtering, exclusions, .md→.mdx conversion)
  • aggregate-reports.bats - 8 tests for report aggregation and metric calculation

New workflow:

  • test-workflow-scripts.yml - Runs tests on PRs that modify workflow scripts, actions, or tests

Test Results (Local)

All 57 tests pass locally.

Review Checklist

  • Verify test coverage is adequate for critical sync workflow paths
  • Check workflow triggers are appropriate (runs on changes to .github/scripts/**, .github/actions/**, .github/tests/**)
  • Confirm tests properly mock GITHUB_OUTPUT for local execution

Link to Devin run: https://app.devin.ai/sessions/477feda674684f5cbd3e51c4fef25e52
Requested by: Agustín Díaz (@AgustinRamiroDiaz)

Add bats-core unit tests for the shell scripts used by the documentation
sync workflow to prevent regressions when updating the docs.

Tests cover:
- version-utils.sh: validate_version function with various SemVer formats
- sanitize-config.sh: config sanitization (RPC URL replacement, dev removal)
- sanitize-docker-compose.sh: docker-compose sanitization (alloy removal)
- sync.sh: file sync logic (add/update/delete, pattern filtering, exclusions)
- aggregate-reports.sh: report aggregation and metric calculation

Also adds a new GitHub workflow (test-workflow-scripts.yml) that runs
these tests on PRs that modify the workflow scripts or actions.

Co-Authored-By: Agustín Díaz <agustin.ramiro.diaz@gmail.com>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@vercel
Copy link
Contributor

vercel bot commented Jan 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
genlayer-docs Ready Ready Preview, Comment Jan 22, 2026 6:38pm

Request Review

@netlify
Copy link

netlify bot commented Jan 22, 2026

Deploy Preview for genlayer-docs ready!

Name Link
🔨 Latest commit 4aeda58
🔍 Latest deploy log https://app.netlify.com/projects/genlayer-docs/deploys/69726ea46029820008ddd5cf
😎 Deploy Preview https://deploy-preview-333--genlayer-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 22, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@AgustinRamiroDiaz
Copy link
Contributor

closing since it's not what I wanted

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.

1 participant