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

Skip all program tests except usercontactmethod #542

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

guineveresaenger
Copy link
Contributor

Addresses #535 and ##537.

Follow-up filed in #541.

@guineveresaenger guineveresaenger requested a review from a team June 20, 2024 18:40
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Maintainer note: consult the runbook for dealing with any breaking changes.

@@ -96,6 +96,10 @@ func testProgram(t *testing.T, dir string) {
if testing.Short() {
t.Skipf("Skipping in testing.Short() mode, assuming this is a CI run without credentials")
}
// Skipping due to known flakes - see https://github.com/pulumi/pulumi-pagerduty/issues/541
if !(dir == "test-programs/index_usercontactmethod") {
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer a skip list so that newly added programs are not skipped.

Suggested change
if !(dir == "test-programs/index_usercontactmethod") {
if slices.Contains([]string{
"test-programs/index_service",
"test-programs/index_schedule",
"test-programs/index_usernotificationrule",
"test-programs/index_escalationpolicy",
}, dir) {

@guineveresaenger guineveresaenger merged commit cb4d6b2 into master Jun 20, 2024
18 checks passed
@guineveresaenger guineveresaenger deleted the guin/skip-flaky-tests branch June 20, 2024 21:13
This was referenced Jun 20, 2024
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