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

Upgrade terraform-provider-github to v5.12.0 #284

Merged
merged 5 commits into from
Jan 13, 2023

Conversation

guineveresaenger
Copy link
Contributor

@guineveresaenger guineveresaenger commented Jan 12, 2023

Also updates Go version to 1.19
Updates to latest Pulumi.
Updates to latest Terraform bridge.

Additionally adds language to integration tests to aid with future debugging
Removes test skipping in the case of missing config variables
Removes deprecated organization field in tests to use owner instead.

Fixes #275
Supersedes #277

@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.

New resources:

  • index/actionsRepositoryPermissions.ActionsRepositoryPermissions
  • index/appInstallationRepositories.AppInstallationRepositories
  • index/organizationSecurityManager.OrganizationSecurityManager
  • index/release.Release
  • index/teamSettings.TeamSettings

New functions:

  • index/getActionsOrganizationRegistrationToken.getActionsOrganizationRegistrationToken
  • index/getActionsRegistrationToken.getActionsRegistrationToken

@guineveresaenger guineveresaenger requested a review from a team January 12, 2023 18:19
@t0yv0
Copy link
Member

t0yv0 commented Jan 12, 2023

401 Bad credentials [] on the Python test it seems like.

@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.

New resources:

  • index/actionsRepositoryPermissions.ActionsRepositoryPermissions
  • index/appInstallationRepositories.AppInstallationRepositories
  • index/organizationSecurityManager.OrganizationSecurityManager
  • index/release.Release
  • index/teamSettings.TeamSettings

New functions:

  • index/getActionsOrganizationRegistrationToken.getActionsOrganizationRegistrationToken
  • index/getActionsRegistrationToken.getActionsRegistrationToken

@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.

New resources:

  • index/actionsRepositoryPermissions.ActionsRepositoryPermissions
  • index/appInstallationRepositories.AppInstallationRepositories
  • index/organizationSecurityManager.OrganizationSecurityManager
  • index/release.Release
  • index/teamSettings.TeamSettings

New functions:

  • index/getActionsOrganizationRegistrationToken.getActionsOrganizationRegistrationToken
  • index/getActionsRegistrationToken.getActionsRegistrationToken

While debugging tests, it was unclear which test was creating which
repo. Changing the descriptions makes it easier to figure out which test
to look at.
When GH_ORGANIZATION or GH_TESTING_TOKEN are expired, we should see
that loudly in CI tests. Skipping tests when these are missing or
misconfigured makes it seem tests are running and passing.
@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.

New resources:

  • index/actionsRepositoryPermissions.ActionsRepositoryPermissions
  • index/appInstallationRepositories.AppInstallationRepositories
  • index/organizationSecurityManager.OrganizationSecurityManager
  • index/release.Release
  • index/teamSettings.TeamSettings

New functions:

  • index/getActionsOrganizationRegistrationToken.getActionsOrganizationRegistrationToken
  • index/getActionsRegistrationToken.getActionsRegistrationToken

},
}
}

func getGitHubTestingOrg(t *testing.T) string {
org := os.Getenv("GH_ORGANIZATION")
if org == "" {
t.Skipf("Skipping test due to missing GH_ORGANIZATION environment variable")

Choose a reason for hiding this comment

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

What about local testing? Is there to way to only fail when we're running on Github?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure I entirely understand your question - these variables are the CI equivalent to GITHUB_OWNER and GITHUB_TOKEN from here: https://www.pulumi.com/registry/packages/github/installation-configuration/.

@guineveresaenger guineveresaenger merged commit 50435cf into master Jan 13, 2023
@guineveresaenger guineveresaenger deleted the guin/update-v5.12.0 branch January 13, 2023 19:30
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.

Upgrade terraform-provider-github to v5.12.0
3 participants