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

NETOBSERV-1285 Move "query is slow" info to query summary #438

Merged
merged 4 commits into from
Jan 25, 2024

Conversation

jpinsonneau
Copy link
Contributor

Description

Move "query is slow" info to query summary
Screenshot from 2023-12-07 15-40-54

Dependencies

#412

Checklist

If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.

  • Is this PR backed with a JIRA ticket? If so, make sure it is written as a title prefix (in general, PRs affecting the NetObserv/Network Observability product should be backed with a JIRA ticket - especially if they bring user facing changes).
  • Does this PR require product documentation?
    • If so, make sure the JIRA epic is labelled with "documentation" and provides a description relevant for doc writers, such as use cases or scenarios. Any required step to activate or configure the feature should be documented there, such as new CRD knobs.
  • Does this PR require a product release notes entry?
    • If so, fill in "Release Note Text" in the JIRA.
  • Is there anything else the QE team should know before testing? E.g: configuration changes, environment setup, etc.
    • If so, make sure it is described in the JIRA ticket.
  • QE requirements (check 1 from the list):
    • Standard QE validation, with pre-merge tests unless stated otherwise.
    • Regression tests only (e.g. refactoring with no user-facing change).
    • No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

Copy link

codecov bot commented Dec 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2071993) 58.60% compared to head (2e9e9cc) 58.67%.
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #438      +/-   ##
==========================================
+ Coverage   58.60%   58.67%   +0.06%     
==========================================
  Files         167      167              
  Lines        8310     8314       +4     
  Branches     1061     1062       +1     
==========================================
+ Hits         4870     4878       +8     
+ Misses       3132     3126       -6     
- Partials      308      310       +2     
Flag Coverage Δ
uitests 59.31% <100.00%> (+0.09%) ⬆️
unittests 56.81% <ø> (ø)

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.

@jotak jotak added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Dec 11, 2023
Copy link

New image:
quay.io/netobserv/network-observability-console-plugin:b93007b

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=b93007b make set-plugin-image

@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Dec 14, 2023
@jpinsonneau
Copy link
Contributor Author

Rebased without changes

@jotak jotak added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jan 10, 2024
Copy link

New image:
quay.io/netobserv/network-observability-console-plugin:64e7408

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=64e7408 make set-plugin-image

Comment on lines 50 to 52
{dateText}
{detailed && numQueries && ` ${t('running')} ${numQueries} ${numQueries > 1 ? t('queries') : t('query')}`}
{detailed && lastDuration && lastDuration > 0 && ` ${t('in')} ${formatDuration(lastDuration)}`}
Copy link
Member

Choose a reason for hiding this comment

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

not sure exactly what's wrong here, but often I end up seeing truncated text:
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that one should do the trick
6449195

Copy link
Member

@jotak jotak Jan 16, 2024

Choose a reason for hiding this comment

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

I was just looking at formatDuration ... in fact if we use formatDurationAboveMillisecond instead we cover more durations, as formatDuration ignores when it's below 1 second and the other is more precise

Copy link
Member

Choose a reason for hiding this comment

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

@jpinsonneau I've marked lgtm but still I think it would be better to use formatDurationAboveMillisecond, don't you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, done in 2e9e9cc
Thanks !

lastRefresh={lastRefresh}
lastDuration={lastDuration}
warningMessage={warningMessage}
slownessReason={slownessReason()}
Copy link
Member

Choose a reason for hiding this comment

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

Something else I don't explain just looking at the code: for some reason I see the slowness message working for metrics query summary but not for flow query summary. You can see here, query took 9s but no warning:
Capture d’écran du 2024-01-11 11-31-07

Copy link
Member

@jotak jotak Jan 11, 2024

Choose a reason for hiding this comment

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

Ok, I think there is a totally different issue, probably not due to this PR, that is preventing the Promise.race call to work as expected when the flows table is displayed. In fact, when flow table is loading, the whole UI seems barely usable, like frozen. For instance, I can't open the query options or filters while it's fetching data. In topology or overview I don't have this problem, the UI is reactive. I have the feeling something is taking all compute time and doesn't give a chance to the setTimeout promise used in race to run properly. I can reproduce that problem both in chrome and firefox.
As soon as it finishes loading data, the UI retrieves its reactivity.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you have all columns displayed ? That's typically something related to view drawing performances

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Table is having an issue rendering all rows. I have fixed it in b7a0939

Copy link
Member

Choose a reason for hiding this comment

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

yep that sounds to have fix it! thanks

@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jan 16, 2024
@jotak jotak added the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jan 16, 2024
Copy link

New image:
quay.io/netobserv/network-observability-console-plugin:b0ab67b

It will expire after two weeks.

To deploy this build, run from the operator repo, assuming the operator is running:

USER=netobserv VERSION=b0ab67b make set-plugin-image

@jotak
Copy link
Member

jotak commented Jan 22, 2024

/lgtm

@openshift-ci openshift-ci bot removed the lgtm label Jan 22, 2024
@github-actions github-actions bot removed the ok-to-test To set manually when a PR is safe to test. Triggers image build on PR. label Jan 22, 2024
@jotak
Copy link
Member

jotak commented Jan 22, 2024

/lgtm

Copy link

openshift-ci bot commented Jan 25, 2024

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 49c33d4 into netobserv:main Jan 25, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants