Skip to content

Introduce reusable composite actions, modular validation groups, and diagnostic utilities#83

Merged
ExtraToast merged 34 commits intomainfrom
headscale-fix
Apr 13, 2026
Merged

Introduce reusable composite actions, modular validation groups, and diagnostic utilities#83
ExtraToast merged 34 commits intomainfrom
headscale-fix

Conversation

@ExtraToast
Copy link
Copy Markdown
Owner

@ExtraToast ExtraToast commented Apr 12, 2026

This pull request introduces several improvements to the CI/CD pipeline, focusing on maintainability, modularity, and flexibility for validation and setup tasks. The changes include the introduction of reusable GitHub Action composites for Java/Gradle and Node/PNPM environments, refactoring of the Nomad CI bootstrap script to support targeted validation groups, and the addition of new utility scripts for diagnostics and health checks. These updates streamline the workflow configuration and make the CI process more robust and easier to extend.

CI/CD Workflow Improvements

  • Replaced direct uses of actions/setup-java, gradle/actions/setup-gradle, pnpm/action-setup, and actions/setup-node in workflow files with new composite actions (setup-java-gradle and setup-node-pnpm) for improved maintainability and consistency across jobs. (.github/workflows/fast.yml, .github/workflows/full.yml, .github/actions/setup-java-gradle/action.yml, .github/actions/setup-node-pnpm/action.yml) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]

Nomad CI Bootstrap Refactor

  • Refactored .github/scripts/bootstrap-nomad-ci.sh to introduce the NOMAD_VALIDATION_GROUP variable and modular deployment phases (auth, assistant, app, platform, full), allowing for more targeted and efficient validation slices in CI. (.github/scripts/bootstrap-nomad-ci.sh) [1] [2] [3] [4]

New Utility and Diagnostic Scripts

  • Added scripts for improved diagnostics and health checks: dump-compose-ci-diagnostics.sh for Docker Compose troubleshooting, validate-nomad-health.sh for Nomad job health validation, and seed-stalwart-ci.sh for seeding mail accounts in CI. (.github/scripts/dump-compose-ci-diagnostics.sh, .github/scripts/validate-nomad-health.sh, .github/scripts/seed-stalwart-ci.sh) [1] [2] [3]

Reusable CI Host Preparation

  • Added a new composite action prepare-ci-host to automate downloading/loading Docker images and configuring development DNS in CI environments. (.github/actions/prepare-ci-host/action.yml)

Workflow Configuration Enhancements

  • Updated workflow change detection to include the new system-tests.yml for better dependency tracking. (.github/workflows/full.yml)

These changes collectively enhance the flexibility, maintainability, and reliability of the project's CI/CD pipeline.

@ExtraToast ExtraToast self-assigned this Apr 12, 2026
Allow services to burst above their memory reservation without being
immediately killed by cgroups. Each service gets 15-30% headroom.
Replace the heavyweight Nomad/Consul/Vault CI bootstrap with Docker
Compose for running system tests. This eliminates ~8 min of bootstrap
overhead and reduces memory pressure on the 7GB GitHub Actions runner.

- Create docker-compose.ci.yml override (CI images, disabled services)
- Rewrite system-tests.yml to use Docker Compose
- Add compose diagnostics and stalwart seeding scripts
- Remove maxHeapSize constraint from test JVM
Create a separate workflow that validates Nomad job deployments become
healthy, running in parallel with the Docker Compose system tests.
Deploys services in parallel dependency groups for faster validation.
Run `nomad fmt` to properly align resource block keys (cpu, memory,
memory_max) after adding memory_max.
Replace `build: !reset null` with `pull_policy: never` to prevent
compose from trying to build images when both build and image are set.
Prevent compose from trying to build images when a build context is
inherited from the base compose file.
@ExtraToast ExtraToast changed the title Update Headscale health check path in Nomad job configuration Introduce reusable composite actions, modular validation groups, and diagnostic utilities Apr 13, 2026
@ExtraToast ExtraToast merged commit 4db5999 into main Apr 13, 2026
40 checks passed
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