Skip to content

chore: Enable acceptance test automation - #3502

Merged
stevehipwell merged 16 commits into
mainfrom
enable-acceptance-test-automation
Jul 1, 2026
Merged

stevehipwell merged 16 commits into
mainfrom
enable-acceptance-test-automation

Conversation

@stevehipwell

@stevehipwell stevehipwell commented Jun 24, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #3260

Important

The purpose of this PR is to make the full suite of acceptance tests runnable and to make this available as part of automation; it is NOT to fix all of the tests.


Before the change?

  • No acceptance tests run as part of a PR or when landing on main
  • Acceptance tests don't use parallelization
  • Acceptance test suite takes over an hour to run

After the change?

  • DotCom acceptance tests run when PR is from this repo (users with write access)
    • Require acctest label to be added
    • Can be modified to support pull_request_target in the future
      • Would require label from someone with repo write access before being able to be run
  • DotCom acceptance tests run when code lands on main
  • All test parallelized
  • Acceptance tests run in under 30 mins (this should be reduced when test have been refactored to latest pattern see repository custom property tests)
  • Simplified required test fixtures
    • GITHUB_USERNAME has been replaced by GITHUB_OWNER for individuals or GH_TEST_ORG_USER1 for organizations
    • GH_TEST_ORG_SECRET_NAME is no longer needed as secrets will be created on demand
    • GH_TEST_ORG_REPOSITORY, GH_TEST_ORG_TEMPLATE_REPOSITORY & GH_TEST_USER_REPOSITORY are no longer needed

Note

After this is merged the following work needs to be carried out:

  • Fix broken or flaky tests (this might require resources or data sources to be fixed)
  • Work through skipped tests to validate and document outstanding changes
  • Refactor tests to new pattern
  • Add support for the other tests modes (e.g. anonymous, individual & enterprise)
    • We might be able to swap organization for enterprise if our app has enough permissions

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@stevehipwell stevehipwell added this to the v6.13.0 milestone Jun 24, 2026
@stevehipwell stevehipwell self-assigned this Jun 24, 2026
@stevehipwell stevehipwell added Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR acctest For CI / automated testing labels Jun 24, 2026
@github-actions

Copy link
Copy Markdown

👋 Hi, and thank you for this contribution!

This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can.

You can help us prioritize by joining the discussion on open issues and PRs, sharing details on the changes you need, and reviewing other contributions.


🤖 This is an automated message.

@stevehipwell
stevehipwell force-pushed the enable-acceptance-test-automation branch 4 times, most recently from a815904 to 4cf9496 Compare June 25, 2026 10:04

@deiga deiga left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looking really good!
Partial review

Comment thread github/acc_test.go Resolved
@stevehipwell
stevehipwell force-pushed the enable-acceptance-test-automation branch 2 times, most recently from fb2a9b9 to ee38f74 Compare June 25, 2026 16:52

@deiga deiga left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You've got amazing progress here!

Comment thread github/resource_github_team_test.go Resolved
Comment thread github/resource_github_team_test.go Resolved
@stevehipwell
stevehipwell force-pushed the enable-acceptance-test-automation branch from 0611acd to d076360 Compare June 26, 2026 14:05

@deiga deiga left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Partial review

@stevehipwell
stevehipwell force-pushed the enable-acceptance-test-automation branch from 2f15303 to ce92c63 Compare June 29, 2026 21:26
@stevehipwell
stevehipwell requested a review from deiga June 29, 2026 21:27
@stevehipwell
stevehipwell force-pushed the enable-acceptance-test-automation branch 3 times, most recently from 91e4ae9 to 3eab411 Compare June 30, 2026 11:57

@deiga deiga left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It seems like all tests run now, right? Time to merge and get on to fixing?

@stevehipwell

Copy link
Copy Markdown
Collaborator Author

It seems like all tests run now, right? Time to merge and get on to fixing?

@deiga yes please.

@robert-crandall robert-crandall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for tackling this, Steve - getting the acctest suite runnable and parallelized (and under 30 min) is a big quality-of-life win for the project. It builds and vets cleanly for me and the scope is nicely contained. One tiny optional thing: in retryUntilResourceFound, ghErr.Response is dereferenced without the nil-check that isSAMLEnforcementError uses right next to it - probably never fires in practice, but might be worth matching for consistency. Not a blocker, this is a great improvement!

@stevehipwell

Copy link
Copy Markdown
Collaborator Author

One tiny optional thing: in retryUntilResourceFound, ghErr.Response is dereferenced without the nil-check that isSAMLEnforcementError uses right next to it - probably never fires in practice, but might be worth matching for consistency. Not a blocker, this is a great improvement!

@robert-crandall I'll add this to the other PR so I can get this one merged in.

@stevehipwell
stevehipwell force-pushed the enable-acceptance-test-automation branch from 3eab411 to c76b2c9 Compare July 1, 2026 08:14
@stevehipwell
stevehipwell enabled auto-merge (squash) July 1, 2026 08:15
@stevehipwell
stevehipwell merged commit c12ee83 into main Jul 1, 2026
9 of 10 checks passed
@stevehipwell
stevehipwell deleted the enable-acceptance-test-automation branch July 1, 2026 08:16
Copilot AI mentioned this pull request Jul 9, 2026
4 of 5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

acctest For CI / automated testing Type: Maintenance Any dependency, housekeeping, and clean up Issue or PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants