Skip to content

CORE-917 Migrate aws-exporter CI from CircleCI to GitHub Actions - #28

Merged
kernelold merged 1 commit into
masterfrom
feature/core-917-aws-exporter-migrate-ci-off-circleci
Nov 6, 2026
Merged

kernelold merged 1 commit into
masterfrom
feature/core-917-aws-exporter-migrate-ci-off-circleci

Conversation

@kernelold

Copy link
Copy Markdown
Collaborator

Summary

Replace CircleCI with GitHub Actions on Blacksmith runners while preserving test, build, and release behavior.

Linear: https://linear.app/clark-se/issue/CORE-917/aws-exporter-migrate-ci-off-circleci

Changes

  • Replace .circleci/config.yml with .github/workflows/ci.yml. Pin all actions to commit SHAs, set least-privilege contents: read permissions, and add concurrency controls.
  • Trigger on pull requests, pushes to master, and pushes of any tag (**; tags have no v prefix, e.g. 0.5.2).
  • Update the README CI badge.
  • Leave codeql-analysis.yml unchanged; its legacy CodeQL actions are a separate follow-up.

Job/secret mapping

Job Runs on Behavior
test All refs Python 3.9, tox, virtualenv<20.22
build_dist All refs fetch-depth: 0; build with setuptools-scm, run twine check, upload dist artifact
docker_build All refs Build amd64 and arm64 images without pushing; needs test
test_pypi_publish Push to master Needs test and build_dist
pypi_publish Tag push Needs test and build_dist
docker_push Tag push Needs pypi_publish and docker_build; pushes clarksource/aws-exporter:<tag> and :latest
CircleCI context / variable GitHub configuration
TestPyPI TWINE_USERNAME / TWINE_PASSWORD TEST_PYPI_USERNAME / TEST_PYPI_PASSWORD secrets
PyPI TWINE_USERNAME / TWINE_PASSWORD PYPI_USERNAME / PYPI_PASSWORD secrets
Docker Hub DOCKERHUB_USERNAME / DOCKERHUB_TOKEN DOCKERHUB_USERNAME / DOCKERHUB_TOKEN secrets
IMAGE_NAME Repository variable IMAGE_NAME (clarksource/aws-exporter)

All listed secrets and the repository variable are configured. PyPI and TestPyPI currently share the same credential pair.

Testing

  • actionlint passed.
  • tox passed on Python 3.9.
  • python -m build and twine check passed.
  • Docker build and publish jobs have not yet been exercised in CI; publish jobs run only on master pushes or tag pushes as listed above.

Not covered / follow-ups

  • Update branch protection to remove the stale CircleCI required check. PLT-915 removes the stale GitHub App status.
  • After merge, verify test_pypi_publish succeeds on master.
  • On the next release tag, verify pypi_publish and docker_push.
  • Disable the CircleCI project after verification; revoke old CircleCI context tokens if rotated.
  • Migrate codeql-analysis.yml from legacy v1 CodeQL actions in a separate follow-up.

@kernelold
kernelold requested a review from a team as a code owner November 6, 2026 16:25
@kernelold
kernelold merged commit 5ed5505 into master Nov 6, 2026
7 of 8 checks passed
@kernelold
kernelold deleted the feature/core-917-aws-exporter-migrate-ci-off-circleci branch November 6, 2026 16:59
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