Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@AndrejsPon00
Copy link
Contributor

  • Fix tests that failed due to a new metrics structure

@Copilot Copilot AI review requested due to automatic review settings September 10, 2025 09:37
Copilot

This comment was marked as outdated.

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 fixes failing tests in the KOF UI's Victoria dashboard by updating test expectations to match a new metrics data structure. The changes address test failures that occurred after Victoria's metrics response format was updated from simple key-value pairs to arrays of metric objects with labels and values.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/victoria_tests/VictoriaTable.test.tsx Updated pod name expectations and cluster selection to match new fake data structure
tests/victoria_tests/VictoriaList.test.tsx Fixed expected pod count from 6 to 2 for mothership cluster
tests/victoria_tests/VictoriaDetailsPage.test.tsx Updated component type names and tab count expectations
tests/fake_data/fake_victoria_response.ts Completely restructured fake data to use new array-based metric format
tests/MetricsCard.test.tsx Updated component imports and metric expectations to match new data structure
src/components/pages/victoriaPage/victoria-details/VictoriaDetailsPage.tsx Fixed TabsContent wrapping for Raw Metrics tab
src/components/pages/collectorPage/components/collector-details/CollectorContent.tsx Fixed TabsContent wrapping for Raw Metrics tab

@gmlexx
Copy link
Collaborator

gmlexx commented Sep 10, 2025

@AndrejsPon00 please add a step in CI to run tests

Copy link
Collaborator

@gmlexx gmlexx left a comment

Choose a reason for hiding this comment

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

Looks like we don't run these tests in CI, so they might be broken in future, please add a step to the CI

@denis-ryzhkov
Copy link
Collaborator

@AndrejsPon00 please add a step in CI to run tests

@AndrejsPon00 AndrejsPon00 added this pull request to the merge queue Sep 10, 2025
Merged via the queue into k0rdent:main with commit 248fd5a Sep 10, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this to Done in k0rdent Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants