Skip to content

mgr/dashboard: fix flaky promql query test - #63279

Merged
nizamial09 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-promql-query-tests
May 15, 2025
Merged

nizamial09 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-promql-query-tests

Conversation

@aaSharma14

@aaSharma14 aaSharma14 commented May 14, 2025 •

Copy link
Copy Markdown
Contributor

There is a test collision in "promql-query-test" test suite because two different IOPS panels with the same title and legend labels (Read, Write) are present, and the test framework is not able to distinguish between them. There are two panels with the same title IOPS and legends Read / Write, but different expressions:\

  1. ceph-application-overview.json
  2. ceph-cluster-advanced.json

#63266 (comment)

Fixes: https://tracker.ceph.com/issues/71318

Signed-off-by: Aashish Sharma [email protected]

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

@aaSharma14
aaSharma14 requested a review from a team as a code owner May 14, 2025 08:06
@aaSharma14
aaSharma14 requested review from afreen23 and pecastro and removed request for a team May 14, 2025 08:06
@aaSharma14
aaSharma14 force-pushed the fix-promql-query-tests branch from d875e4e to 2a5d5ea Compare May 14, 2025 08:08
@aaSharma14
aaSharma14 removed the request for review from pecastro May 14, 2025 08:12
@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard May 14, 2025
@cloudbehl

Copy link
Copy Markdown
Contributor

@aaSharma14 please make the required changes, as below in panels.

Screenshot from 2025-05-15 16-10-37
Screenshot from 2025-05-15 16-10-21
Screenshot from 2025-05-15 16-10-06

There is a test collision in "promql-query-test" test suite because two different IOPS panels with the same title and legend labels (Read, Write) are present, and the test framework is not able to distinguish between them.
There are two panels with the same title IOPS and legends Read / Write, but different expressions:\
1. ceph-application-overview.json
2. ceph-cluster-advanced.json

Fixes: https://tracker.ceph.com/issues/71318

Signed-off-by: Aashish Sharma <[email protected]>
@aaSharma14
aaSharma14 force-pushed the fix-promql-query-tests branch from 2a5d5ea to 5798d2f Compare May 15, 2025 10:52

@cloudbehl cloudbehl 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.

LGTM

@nizamial09

Copy link
Copy Markdown
Member

Api test failed before starting


Traceback (most recent call last):
  File "/home/jenkins-build/build/workspace/ceph-api/build/../qa/tasks/vstart_runner.py", line 1616, in 
    exec_test()
  File "/home/jenkins-build/build/workspace/ceph-api/build/../qa/tasks/vstart_runner.py", line 1454, in exec_test
    remote.run(args=args, env=vstart_env, timeout=(10 * 60))
  File "/home/jenkins-build/build/workspace/ceph-api/build/../qa/tasks/vstart_runner.py", line 468, in run
    return self._do_run(**kwargs)
  File "/home/jenkins-build/build/workspace/ceph-api/build/../qa/tasks/vstart_runner.py", line 507, in _do_run
    proc.wait(timeout)
  File "/home/jenkins-build/build/workspace/ceph-api/build/../qa/tasks/vstart_runner.py", line 271, in wait
    raise CommandFailedError(self.args, self.exitstatus)
teuthology.exceptions.CommandFailedError: Command failed with status 250: '../src/vstart.sh -n --nolockdep'

@nizamial09

Copy link
Copy Markdown
Member

jenkins test api

@nizamial09
nizamial09 merged commit 13a4bec into ceph:main May 15, 2025
@nizamial09
nizamial09 deleted the fix-promql-query-tests branch May 15, 2025 18:06
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants