Skip to content

feat: add all branches option to TA branch selector #3842

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

joseph-sentry
Copy link
Contributor

we want to allow users to not filter by any specific branch and aggregate the results from all branches

we also want to make this the default option when users land on the tests tab from now on

i'm putting this behind a feature flag because the backend is not capable of serving this data yet since it relies on the TA timescale data migration, and there's an equivalent API change that needs to be made for this to work correctly as well

fixed a thing where when users were searching through the branch selector for a specific branch we were still pinning the default branch to the top of the selection

also the all branches view has all the nice stuff that the default branch view has: metrics section, reset to default button, etc.

@codecov-staging
Copy link

codecov-staging bot commented Apr 11, 2025

Bundle Report

Changes will increase total bundle size by 325 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-system 6.23MB 197 bytes (0.0%) ⬆️
gazebo-staging-esm 6.31MB 128 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: gazebo-staging-system

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index-legacy.*.js 147 bytes 45.49kB 0.32%
assets/useBranch-legacy.*.js 50 bytes 1.85kB 2.78%

Files in assets/index-legacy.*.js:

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/SelectorSection/SelectorSection.tsx → Total Size: 5.92kB

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.tsx → Total Size: 13.03kB

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/SelectorSection/BranchSelector/BranchSelector.tsx → Total Size: 3.41kB

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/MetricsSection/MetricsSection.tsx → Total Size: 13.55kB

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/TableHeader/TableHeader.tsx → Total Size: 2.03kB

Files in assets/useBranch-legacy.*.js:

  • ./src/services/branches/useBranch.tsx → Total Size: 2.54kB
view changes for bundle: gazebo-staging-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index.*.js 73 bytes 49.23kB 0.15%
assets/useBranch.*.js 55 bytes 1.95kB 2.9%

Files in assets/index.*.js:

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/TableHeader/TableHeader.tsx → Total Size: 2.03kB

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.tsx → Total Size: 13.03kB

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/SelectorSection/BranchSelector/BranchSelector.tsx → Total Size: 3.41kB

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/MetricsSection/MetricsSection.tsx → Total Size: 13.55kB

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/SelectorSection/SelectorSection.tsx → Total Size: 5.92kB

Files in assets/useBranch.*.js:

  • ./src/services/branches/useBranch.tsx → Total Size: 2.52kB

Copy link

codecov bot commented Apr 11, 2025

Bundle Report

Changes will increase total bundle size by 325 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 6.23MB 197 bytes (0.0%) ⬆️
gazebo-production-esm 6.31MB 128 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: gazebo-production-system

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index-legacy.*.js 147 bytes 45.49kB 0.32%
assets/useBranch-legacy.*.js 50 bytes 1.85kB 2.78%

Files in assets/index-legacy.*.js:

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.tsx → Total Size: 13.03kB

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/SelectorSection/SelectorSection.tsx → Total Size: 5.92kB

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/SelectorSection/BranchSelector/BranchSelector.tsx → Total Size: 3.41kB

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/MetricsSection/MetricsSection.tsx → Total Size: 13.55kB

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/TableHeader/TableHeader.tsx → Total Size: 2.03kB

Files in assets/useBranch-legacy.*.js:

  • ./src/services/branches/useBranch.tsx → Total Size: 2.54kB
view changes for bundle: gazebo-production-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/index.*.js 73 bytes 49.23kB 0.15%
assets/useBranch.*.js 55 bytes 1.95kB 2.9%

Files in assets/index.*.js:

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/SelectorSection/SelectorSection.tsx → Total Size: 5.92kB

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/MetricsSection/MetricsSection.tsx → Total Size: 13.55kB

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/TableHeader/TableHeader.tsx → Total Size: 2.03kB

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.tsx → Total Size: 13.03kB

  • ./src/pages/RepoPage/FailedTestsTab/FailedTestsPage/SelectorSection/BranchSelector/BranchSelector.tsx → Total Size: 3.41kB

Files in assets/useBranch.*.js:

  • ./src/services/branches/useBranch.tsx → Total Size: 2.52kB

This comment has been minimized.

@codecov-notifications
Copy link

codecov-notifications bot commented Apr 11, 2025

❌ 8 Tests Failed:

Tests completed Failed Passed Skipped
5717 8 5709 3
View the top 3 failed test(s) by shortest run time
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > ability to sort > can sort on commits failed column
Stack Traces | 0.0119s run time
TestingLibraryElementError: Unable to find an element with the text: Commits failed. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>
 ❯ waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27
 ❯ node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:582:48
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > ability to sort > can sort on last run column
Stack Traces | 0.0143s run time
TestingLibraryElementError: Unable to find an element with the text: Last run. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>
 ❯ waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27
 ❯ node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:616:42
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > ability to sort > can sort on duration column
Stack Traces | 0.0146s run time
TestingLibraryElementError: Unable to find an element with the text: Avg. duration. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>
 ❯ waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27
 ❯ node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:446:43

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Copy link

codecov bot commented Apr 11, 2025

❌ 8 Tests Failed:

Tests completed Failed Passed Skipped
4496 8 4488 3
View the top 3 failed test(s) by shortest run time
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > ability to sort > can sort on commits failed column
Stack Traces | 0.0119s run time
TestingLibraryElementError: Unable to find an element with the text: Commits failed. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>
 ❯ waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27
 ❯ node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:582:48
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > ability to sort > can sort on last run column
Stack Traces | 0.0143s run time
TestingLibraryElementError: Unable to find an element with the text: Last run. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>
 ❯ waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27
 ❯ node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:616:42
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > ability to sort > can sort on duration column
Stack Traces | 0.0146s run time
TestingLibraryElementError: Unable to find an element with the text: Avg. duration. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>
 ❯ waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27
 ❯ node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:446:43
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > ability to sort > can sort on flake rate column
Stack Traces | 0.0149s run time
TestingLibraryElementError: Unable to find an element with the text: Flake rate. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>
 ❯ waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27
 ❯ node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:548:44
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > ability to sort > can sort on time spent column
Stack Traces | 0.0168s run time
TestingLibraryElementError: Unable to find an element with the text: Time spent. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>
 ❯ waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27
 ❯ node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:480:48
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > ability to sort > can sort on failure rate column
Stack Traces | 0.0186s run time
TestingLibraryElementError: Unable to find an element with the text: Failure rate. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>
 ❯ waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27
 ❯ node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:514:46
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > no data is returned > still returns an empty table
Stack Traces | 0.0398s run time
Error: expect(element).toBeEmptyDOMElement()

Received:
  "<tr><td class="max-w-1 break-words">test-1</td><td data-type="numeric" class="text-right">10.000s</td><td data-type="numeric" class="text-right">100.000s</td><td data-type="numeric" class="text-right">10.00%</td><td data-type="numeric" class="text-right"><button data-state="closed" class="underline decoration-dotted decoration-1 underline-offset-4">0%</button></td><td data-type="numeric" class="text-right">1</td><td class="">over 1 year ago</td></tr><tr><td class="max-w-1 break-words">test-2</td><td data-type="numeric" class="text-right">20.000s</td><td data-type="numeric" class="text-right">200.000s</td><td data-type="numeric" class="text-right">20.00%</td><td data-type="numeric" class="text-right"><button data-state="closed" class="underline decoration-dotted decoration-1 underline-offset-4">20%</button></td><td data-type="numeric" class="text-right">2</td><td class="">over 1 year ago</td></tr>"

Ignored nodes: comments, script, style
<html>
  <head />
  <body>
    <div>
      <div
        class="flex flex-col gap-2"
      >
        Table Header
        <hr />
        <p
          class="mt-4 text-center"
        >
          No test results found
        </p>
      </div>
    </div>
  </body>
</html>
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:435:45
 ❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@.../dom/dist/config.js:47:12
 ❯ checkCallback node_modules/@.../dom/dist/wait-for.js:124:77
 ❯ node_modules/@.../dom/dist/wait-for.js:82:9
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > when first pull request > when there are no test results > renders no data message
Stack Traces | 0.0461s run time
TestingLibraryElementError: Unable to find an element with the text: No data yet. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>
 ❯ waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27
 ❯ node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:385:44

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@codecov-qa
Copy link

codecov-qa bot commented Apr 11, 2025

❌ 8 Tests Failed:

Tests completed Failed Passed Skipped
5717 8 5709 3
View the top 3 failed test(s) by shortest run time
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > ability to sort > can sort on commits failed column
Stack Traces | 0.0119s run time
TestingLibraryElementError: Unable to find an element with the text: Commits failed. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>
 ❯ waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27
 ❯ node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:582:48
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > ability to sort > can sort on last run column
Stack Traces | 0.0143s run time
TestingLibraryElementError: Unable to find an element with the text: Last run. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>
 ❯ waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27
 ❯ node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:616:42
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > ability to sort > can sort on duration column
Stack Traces | 0.0146s run time
TestingLibraryElementError: Unable to find an element with the text: Avg. duration. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>
 ❯ waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27
 ❯ node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:446:43

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Copy link

codecov-public-qa bot commented Apr 11, 2025

❌ 8 Tests Failed:

Tests completed Failed Passed Skipped
5717 8 5709 3
View the top 3 failed test(s) by shortest run time
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > ability to sort > can sort on commits failed column
Stack Traces | 0.0119s run time
TestingLibraryElementError: Unable to find an element with the text: Commits failed. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:582:48
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > ability to sort > can sort on last run column
Stack Traces | 0.0143s run time
TestingLibraryElementError: Unable to find an element with the text: Last run. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:616:42
src/pages/RepoPage/FailedTestsTab/FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx > FailedTestsTable > ability to sort > can sort on duration column
Stack Traces | 0.0146s run time
TestingLibraryElementError: Unable to find an element with the text: Avg. duration. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>

Ignored nodes: comments, script, style
<body>
  <div>
    <div
      class="flex flex-col gap-2"
    >
      Table Header
      <hr />
      <p
        class="mt-4 text-center"
      >
        No test results found
      </p>
    </div>
  </div>
</body>waitForWrapper node_modules/@.../dom/dist/wait-for.js:163:27node_modules/@.../dom/dist/query-helpers.js:86:33
 ❯ .../FailedTestsPage/FailedTestsTable/FailedTestsTable.test.tsx:446:43

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Apr 11, 2025

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
9531248 Fri, 11 Apr 2025 22:32:43 GMT Expired Expired
b5fd5d5 Mon, 14 Apr 2025 15:37:48 GMT Expired Expired
49b51e0 Thu, 01 May 2025 20:10:56 GMT Expired Expired
06a7dff Thu, 24 Jul 2025 14:42:25 GMT Expired Expired
092650e Thu, 24 Jul 2025 15:54:23 GMT Cloud Enterprise

@joseph-sentry joseph-sentry marked this pull request as ready for review April 14, 2025 13:43
@joseph-sentry joseph-sentry requested review from a team and removed request for a team April 14, 2025 13:43
Copy link
Contributor

@nicholas-codecov nicholas-codecov left a comment

Choose a reason for hiding this comment

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

One small thing to clean up, but looks all good 👍

selection = {
name: 'Select branch',
head: null,
console.log('selection', selection)
Copy link
Contributor

Choose a reason for hiding this comment

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

🚨 🚓 🚨

Comment on lines +313 to +340
To see data for the {testData?.defaultBranch} branch, merge your PR
into the {testData?.defaultBranch} branch.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should there be some fallback copy if the default branch doesn't exist?

basically we're going to be encoding a null branch parameter as specifying
"all branches". So if a user goes to `<service>/<owner>/<repo>/tests` they
will no longer get redirected or told to select a branch, we'll first attempt
to fetch the results for all branches from the API.

This change will rely on the change to the API which changes the default value
of the branch when it's undefined to fetch the "all branches" data instead of the
repo's default branch's data.
Comment on lines 130 to 132
failedTestsLink.path({
branch: encodeURIComponent(item?.value),
})

This comment was marked as outdated.

also updates condition for showing error messages in failed tests table
component
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.

3 participants