Skip to content

chore(all): Switch to use only eu-west-1 in tests and doc #562

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 4 commits into from
Feb 17, 2022

Conversation

ijemmy
Copy link
Contributor

@ijemmy ijemmy commented Feb 17, 2022

Description of your changes

Make all region reference to eu-west-1 instead of eu-central-1

This is to avoid confusion as

  1. E2E now runs in both region (logger use eu-central-1 while others use eu-west-1). CDK will throw an error if contributors did not cdk bootstrap both region properly (without saying that it's eu-central-1). Also, fetching the log/metrics/grace with AWS SDK has to be from the same region.
  2. tests/resources/contexts/hello-world.ts file is shared among utilities. The file specify eu-central-1 but we actually use eu-west-1 in some tests. It is not clear (unless tracing the code) on which region the test is using.

With this case, everything is on eu-west-1, including examples and documentation.

How to verify this change

Run both unit and e2e tests

Related issues, RFCs

PR status

Is this ready for review?: YES
Is it a breaking change?: NO

Checklist

  • My changes meet the tenets criteria
  • I have performed a self-review of my own code
  • I have commented my code where necessary, particularly in areas that should be flagged with a TODO, or hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • The code coverage hasn't decreased
  • I have added tests that prove my change is effective and works
  • New and existing unit tests pass locally and in Github Actions
  • Any dependent changes have been merged and published in downstream module
  • The PR title follows the conventional commit semantics

Breaking change checklist

  • I have documented the migration process
  • I have added, implemented necessary warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

This is to avoid confusion as E2E now runs in both region (logger use eu-central-1 while others use eu-west-1).
It will throw an error if contributors did not cdk bootstrap both region properly.
In addition, the `tests/resources/contexts/hello-world.ts` file is shared among utilities so we should keep the region consistent
@github-actions github-actions bot added the internal PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.) label Feb 17, 2022
@ijemmy ijemmy marked this pull request as ready for review February 17, 2022 09:46
@ijemmy
Copy link
Contributor Author

ijemmy commented Feb 17, 2022

@ijemmy ijemmy merged commit 778af2f into main Feb 17, 2022
@ijemmy ijemmy deleted the ijemmy/standardise-to-eu-west-1 branch February 17, 2022 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants