Skip to content

Migrate MA/MR pipeline from CircleCI to GH Actions #12579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
May 7, 2025

Conversation

sannya-singal
Copy link
Contributor

@sannya-singal sannya-singal commented May 5, 2025

Motivation

This PR is part of the ongoing initiative to migrate our CI/CD workflows from CircleCI to GitHub Actions.

Specifically, it introduces a multi-region and multi-account test execution workflow. It reuses the full-run test suite introduced in #12545 and enhances it by generating randomized AWS Account IDs and Regions.

Changes

  • Adds a new GitHub Actions workflow .github/workflows/aws-tests-mamr.yml for executing full-run tests with randomised AWS credentials.
  • Simulates multi-account and multi-region scenarios by injecting random values for TEST_AWS_ACCOUNT_ID, TEST_AWS_ACCESS_KEY_ID and TEST_AWS_REGION_NAME.
  • Fixes failing workflow https://github.com/localstack/localstack/actions/runs/14832099094/job/41635302430 by updating the action path for Prepare Local Test Environment.
  • Updates the input params in .github/workflows/aws-tests.yml to add values for region, account id and access key id and set the defaults from config.py.

Testing

Successful Workflow: https://github.com/sannya-singal/localstack/actions/runs/14856442816/job/41711348012.

Note: This skips docker client tests in class TestDockerClient: here and test_create_with_exposed_ports: here)

Screenshots

Random credentials being used for the testing of the workflow:

Screenshot 2025-05-06 at 4 03 20 PM

Successful Workflow Run:

Screenshot 2025-05-06 at 4 26 49 PM

@sannya-singal sannya-singal added the semver: patch Non-breaking changes which can be included in patch releases label May 5, 2025
@sannya-singal sannya-singal self-assigned this May 5, 2025
@sannya-singal sannya-singal added this to the Playground milestone May 5, 2025
@sannya-singal sannya-singal marked this pull request as ready for review May 6, 2025 10:59
Copy link
Member

@silv-io silv-io left a comment

Choose a reason for hiding this comment

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

LGTM! Awesome that we can have it so clean now. Might be a good choice to go this way for the other MA/MR pipelines in the future as well.


env:
IMAGE_NAME: "localstack/localstack"
TINYBIRD_DATASOURCE: "community_tests_circleci_ma_mr"
Copy link
Member

Choose a reason for hiding this comment

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

nit: Would change this to simply community_tests_ma_mar but this will be handled by me either way in the PR handling tinybird upload

@sannya-singal sannya-singal added the review: merge when ready Signals to the reviewer that a PR can be merged if accepted label May 7, 2025
Comment on lines +6 to +9
pull_request:
paths:
- '.github/workflows/aws-tests-mamr.yml'
- '.github/workflows/aws-tests.yml'
Copy link
Contributor

Choose a reason for hiding this comment

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

praise: nice idea :)

@sannya-singal sannya-singal merged commit 90b07b1 into master May 7, 2025
43 checks passed
@sannya-singal sannya-singal deleted the circleci-ga-mamr branch May 7, 2025 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review: merge when ready Signals to the reviewer that a PR can be merged if accepted semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants