Skip to content

Conversation

@kmruiz
Copy link
Collaborator

@kmruiz kmruiz commented Oct 24, 2025

Proposed changes

This adds a retry mechanism to OIDC tests in case the fail. It reuses the retry mechanism from vitest, which should also run fixtures.

Checklist

Copilot AI review requested due to automatic review settings October 24, 2025 10:06
@kmruiz kmruiz requested a review from a team as a code owner October 24, 2025 10:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a retry mechanism to OIDC integration tests to improve test reliability. The change configures vitest to retry failed OIDC tests up to 5 times, which will re-run fixtures on each retry attempt.

Key Changes:

  • Added retry: 5 configuration to OIDC test cases to handle transient failures

@coveralls
Copy link
Collaborator

coveralls commented Oct 24, 2025

Pull Request Test Coverage Report for Build 18776932526

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.004%) to 80.134%

Totals Coverage Status
Change from base Build 18776177279: -0.004%
Covered Lines: 6297
Relevant Lines: 7718

💛 - Coveralls

function oidcIt(name: string, cb: Parameters<OidcIt>[1]): void {
/* eslint-disable vitest/expect-expect */
it(name, { timeout: DEFAULT_TIMEOUT }, async (context) => {
it(name, { timeout: DEFAULT_TIMEOUT, retry: 5 }, async (context) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

is there some wait time for this? would it make sense to introduce some wait on retries?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

vitest doesn't support wait time :( https://vitest.dev/api/#test-api-reference

@kmruiz kmruiz enabled auto-merge (squash) October 24, 2025 10:26
@kmruiz kmruiz merged commit fe38463 into main Oct 24, 2025
17 checks passed
@kmruiz kmruiz deleted the fix/oidc-reliability branch October 24, 2025 10: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.

4 participants