Skip to content
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

TESTID-43: add max recent queries tests #9307

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

Conversation

silvaf-dev
Copy link
Contributor

@silvaf-dev silvaf-dev commented Jan 30, 2025

Description

This PR covers all the tests included in TESTID-43 and TESTID-42.

Issues Resolved

Screenshot

Screenshot 2025-01-30 at 1 40 25 PM
Screen.Recording.2025-01-30.at.1_compressed_compressed.mp4

Testing the changes

Changelog

  • test: add recent queries tests

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Copy link
Contributor

❌ Invalid Prefix For Manual Changeset Creation

Invalid description prefix. Found "test". Only "skip" entry option is permitted for manual commit of changeset files.

If you were trying to skip the changelog entry, please use the "skip" entry option in the ##Changelog section of your PR description.

Copy link

codecov bot commented Jan 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.70%. Comparing base (527c1dc) to head (4222e97).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9307      +/-   ##
==========================================
- Coverage   61.71%   61.70%   -0.01%     
==========================================
  Files        3816     3816              
  Lines       91829    91829              
  Branches    14543    14543              
==========================================
- Hits        56668    56666       -2     
- Misses      31506    31507       +1     
- Partials     3655     3656       +1     
Flag Coverage Δ
Linux_1 28.99% <ø> (ø)
Linux_2 56.46% <ø> (ø)
Linux_3 39.18% <ø> (-0.01%) ⬇️
Linux_4 28.90% <ø> (ø)
Windows_1 29.00% <ø> (ø)
Windows_2 56.41% <ø> (ø)
Windows_3 39.18% <ø> (ø)
Windows_4 28.90% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

❌ Invalid Prefix For Manual Changeset Creation

Invalid description prefix. Found "test". Only "skip" entry option is permitted for manual commit of changeset files.

If you were trying to skip the changelog entry, please use the "skip" entry option in the ##Changelog section of your PR description.

@github-actions github-actions bot added the Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry label Jan 30, 2025
});

generateAllTestConfigurations(generateMaxRecentQueriesTestConfiguration).forEach((config) => {
if (config.language !== 'PPL' && config.language !== 'OpenSearch SQL') return;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please leave a comment with why this is the case?

Copy link
Member

Choose a reason for hiding this comment

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

I suggest not directly use generateAllTestConfigurations and avoid using if in the permutation. Can we define a permutation just for recent query?

One reference is https://github.com/opensearch-project/OpenSearch-Dashboards/pull/9322/files
For autocomplete, sometimes it only test DQL/SQL as well.

Copy link
Member

Choose a reason for hiding this comment

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

okay I saw you defined generateMaxRecentQueriesTestConfiguration why not use that?

@ananzh ananzh added discover_2.0-test Issues that are specific to the Discover 2.0 testing initiative backport 2.x v2.20.0 labels Feb 4, 2025
@ananzh
Copy link
Member

ananzh commented Feb 4, 2025

why skip changelog?

@ananzh
Copy link
Member

ananzh commented Feb 4, 2025

also need to update package.json, you can check other test prs

Copy link
Contributor

github-actions bot commented Feb 4, 2025

❌ Invalid Prefix For Manual Changeset Creation

Invalid description prefix. Found "test". Only "skip" entry option is permitted for manual commit of changeset files.

If you were trying to skip the changelog entry, please use the "skip" entry option in the ##Changelog section of your PR description.

@github-actions github-actions bot added failed changeset and removed Skip-Changelog PRs that are too trivial to warrant a changelog or release notes entry labels Feb 4, 2025
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Signed-off-by: Federico Silva <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x discover_2.0-test Issues that are specific to the Discover 2.0 testing initiative failed changeset repeat-contributor v2.20.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants