Skip to content
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

Switch to writing credentials from secrets for integration tests (WOR-1745). #312

Merged
merged 17 commits into from
Jul 3, 2024

Conversation

cahrens
Copy link
Contributor

@cahrens cahrens commented Jul 2, 2024

As part of WOR-1745, we need to change how the CI pipeline gets the SA credentials so that dependabot is able to run the tests (related PR is https://github.com/broadinstitute/terraform-ap-deployments/pull/1623).

Copy link

sonarqubecloud bot commented Jul 2, 2024

@@ -6,7 +6,7 @@ test {

import org.gradle.api.tasks.testing.logging.TestExceptionFormat
// This is the path to the default Google service account for the buffer service to run as.
def googleCredentialsFile = "${projectDir}/src/test/resources/rendered/sa-account.json"
def googleCredentialsFile = "${projectDir}/rendered/sa-account.json"
Copy link
Contributor Author

@cahrens cahrens Jul 3, 2024

Choose a reason for hiding this comment

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

The write-credentials action is not embedding the credential files within the test directory, which makes it different from what local-dev/render-config.sh does (and what local-dev/run-local.sh expects). However, I don't think that's a big deal, and to limit scope I'm not inclined to change how the service is run locally at this time. At some point we should likely follow the repo standards, which will involve creating a standard set of scripts, and we can unify the experience then.

FWIW, I did verify that rendering credentials and running the service locally (following the directions in the README) does still work.

@cahrens cahrens changed the title Switch to writing credentials from secrets (WOR-1745). Switch to writing credentials from secrets for integration tests (WOR-1745). Jul 3, 2024
@cahrens cahrens marked this pull request as ready for review July 3, 2024 12:56
@cahrens cahrens requested review from a team, blakery and aherbst-broad and removed request for a team July 3, 2024 14:06
Copy link

@blakery blakery left a comment

Choose a reason for hiding this comment

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

I think it's fine to merge this with only one approval, since this is only test changes (since everyone else is out)

@cahrens cahrens merged commit d7092bf into master Jul 3, 2024
4 checks passed
@cahrens cahrens deleted the WOR-1745-continue branch July 3, 2024 16:28
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