Skip to content

E2E tests run on private repos - #2469

Merged
spetersenms merged 6 commits into
mainfrom
spetersen-microsoft-supreme-memory
Nov 25, 2026
Merged

spetersenms merged 6 commits into
mainfrom
spetersen-microsoft-supreme-memory

Conversation

@spetersenms

Copy link
Copy Markdown
Contributor

❔What, Why & How

Updating E2E tests to run on private temp repos instead of public temp repos.

@spetersenms
spetersenms requested a review from a team as a code owner November 23, 2026 14:28
Copilot AI balanced review requested due to automatic review settings November 23, 2026 14:28
Comment thread Tests/E2ETestHelper.Test.ps1 Fixed
Comment thread e2eTests/Test-AL-Go-Upgrade.ps1 Fixed
Comment thread e2eTests/Test-AL-Go.ps1 Fixed
Comment thread e2eTests/e2eTestHelper.psm1 Fixed

Copilot AI 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.

🟡 Changes recommended

The private Actions repository is inaccessible to fixture workflows unless cross-repository Actions access is configured, and GHTOKENWORKFLOW does not authorize action-reference resolution.

1 open issue
What changed in this PR

This PR moves AL-Go’s end-to-end tests to private temporary repositories while keeping normal template publication public.

Changes:

  • Default test repositories to private and add private template deployment support.
  • Authenticate template downloads and provision workflow credentials before the first push.
  • Add focused tests and document private-repository prerequisites.
File Description
Tests/​E2ETestHelper.Test.ps1 Tests private creation, authentication, secret provisioning, and deployment.
Scenarios/​Contribute.md Documents private E2E setup and access requirements.
Internal/​Deploy.ps1 Adds an optional private deployment switch.
e2eTests/​Test-AL-Go.ps1 Defaults to private repositories and passes workflow credentials.
e2eTests/​Test-AL-Go-Upgrade.ps1 Uses private upgrade fixtures and workflow credentials.
e2eTests/​SetupRepositories.ps1 Deploys private templates and checks Actions-disable failures.
e2eTests/​scenarios/​WorkspaceCompilation/​runtest.ps1 Passes workflow credentials during setup.
e2eTests/​scenarios/​UseProjectDependencies/​runtest.ps1 Passes workflow credentials during setup.
e2eTests/​scenarios/​SpecialCharacters/​runtest.ps1 Passes workflow credentials during setup.
e2eTests/​scenarios/​SeparateTestAction/​runtest.ps1 Passes workflow credentials during setup.
e2eTests/​scenarios/​ReleaseBranches/​runtest.ps1 Passes workflow credentials during setup.
e2eTests/​scenarios/​ReferenceDocumentation/​runtest.ps1 Passes workflow credentials during setup.
e2eTests/​scenarios/​PowerPlatform/​runtest.ps1 Passes workflow credentials for each fixture.
e2eTests/​scenarios/​IncrementalBuilds/​runtest.ps1 Passes workflow credentials during setup.
e2eTests/​scenarios/​IncludeDependencies/​runtest.ps1 Passes workflow credentials during setup.
e2eTests/​scenarios/​GitHubPackages/​runtest.ps1 Passes workflow credentials during setup.
e2eTests/​scenarios/​FederatedCredentials/​runtest.ps1 Passes workflow credentials during setup.
e2eTests/​scenarios/​CustomTemplate/​runtest.ps1 Passes workflow credentials during setup.
e2eTests/​scenarios/​CopilotCodeReview/​runtest.ps1 Passes workflow credentials during setup.
e2eTests/​scenarios/​BuildModes/​runtest.ps1 Passes workflow credentials during setup.
e2eTests/​scenarios/​BCApps/​runtest.ps1 Passes workflow credentials during setup.
e2eTests/​e2eTestHelper.psm1 Adds private defaults, authenticated downloads, cleanup, and pre-push secrets.

Review effort: Balanced

Comment thread e2eTests/SetupRepositories.ps1 Resolved

Copilot AI 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.

🔵 Needs a closer look

A live E2E run in the target organization is needed because mocked tests cannot verify private Actions sharing, cross-repository authentication, or anonymous Pages access under its policies.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@spetersenms
spetersenms enabled auto-merge (squash) November 25, 2026 09:14
@spetersenms
spetersenms merged commit 75b9d33 into main Nov 25, 2026
8 checks passed
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.

5 participants