Skip to content

Conversation

@anpingli
Copy link

@anpingli anpingli commented Oct 13, 2025

  • Run Logging UI test using real test data
  • defined an individual entrypoint run-cypress-logging.sh
  • update cypress:run:ci and web/cypress.config.ts to make the CI run as-is.
  • Test Logging using both cluster-admin and common users
  • Run Logging test on both Admin Console and Dev Console
  • Run Logging test on both Observer->Logs, and Pod->aggr logs

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 13, 2025
@openshift-ci openshift-ci bot requested review from kyoto and zhuje October 13, 2025 07:28
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 13, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: anpingli
Once this PR has been reviewed and has the lgtm label, please assign zhuje for approval. For more information see the Code Review Process.

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

Details 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-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 13, 2025
@anpingli anpingli changed the title Logging-ui-plugin test using real user [WIP]Logging-ui-plugin test using real user Oct 13, 2025
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 13, 2025
@anpingli anpingli force-pushed the real-user-test branch 8 times, most recently from 86bc31f to 856f0b1 Compare November 24, 2025 10:17
@zhuje
Copy link
Contributor

zhuje commented Nov 24, 2025

/retest

@zhuje
Copy link
Contributor

zhuje commented Nov 24, 2025

@anpingli There are some errors coming from the package-lock.json file, this is from prow logs:

npm error "npm ci" can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with "npm install" before continuing. npm error

@anpingli anpingli force-pushed the real-user-test branch 9 times, most recently from 3294a38 to cf23167 Compare December 3, 2025 13:27
@anpingli anpingli changed the title [WIP]Logging-ui-plugin test using real user ]Logging-ui-plugin test using real data Dec 3, 2025
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 3, 2025
@anpingli anpingli changed the title ]Logging-ui-plugin test using real data Logging-ui-plugin test using real data Dec 3, 2025
@anpingli anpingli force-pushed the real-user-test branch 6 times, most recently from 9a13df3 to 27d9043 Compare December 4, 2025 06:18
@anpingli
Copy link
Author

anpingli commented Dec 4, 2025

@zhuje All test pass now.

@anpingli
Copy link
Author

@jgbernalp could you talk a look my PR?

@jgbernalp
Copy link
Contributor

LGTM
@etmurasaki can you review if this is in line with what we have for other plugins

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 6, 2026
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 6, 2026
@anpingli
Copy link
Author

anpingli commented Jan 6, 2026

@etmurasaki @jgbernalp Refactored the program to improve readability and maintainability, please take a look again.

@@ -0,0 +1,230 @@
export const DataTestIDs = {
Copy link
Contributor

Choose a reason for hiding this comment

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

The ids seem to be specific to monitoring only, are they required here?

Copy link
Author

Choose a reason for hiding this comment

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

I don't use data-test.ts directly. data-test.ts is used by some common function in these files I borrowed from monitoring-plugin. How about merge data-test.ts with test-ids.ts or change the directory of it?

For example:
changeNamespace, changePerspectiveTo
web/cypress/support/commands/utility-commands.ts
web/cypress/views/nav.ts

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe you can include IDs into your test-ids.ts only those you use for changeNamespace, changePerspectiveTo etc...

Copy link
Author

Choose a reason for hiding this comment

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

I'd like to keep the utility files same with the origin, so I just need to copy new files from monitoring-ui plugins directly.

Copy link
Contributor

Choose a reason for hiding this comment

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

The origin should not be the monitoring plugin, but the console itself. Maybe we can extract the console specific ids into a file and copy or reuse only that one. I believe it will make the code easier to understand, contribute and reason about if we only copy what we need and reduce the noise other ids, specific to monitoring only, might cause.

Copy link
Author

@anpingli anpingli Jan 12, 2026

Choose a reason for hiding this comment

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

Moved from src/components/data-test.ts. to web/cypress/fixtures/data-test.ts.

Copy link
Author

Choose a reason for hiding this comment

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

Any suggestion how can we extract all from console? and the IDs are various in different OpenShift Versions.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can create a specific file in the monitoring plugin with ids related to the console, with their corresponding versions. Then copy it here. @etmurasaki WDYT?

@anpingli anpingli force-pushed the real-user-test branch 3 times, most recently from 6f2396c to eb8389d Compare January 12, 2026 08:00
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 12, 2026

@anpingli: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/test-unit be6f2a5 link true /test test-unit
ci/prow/images be6f2a5 link true /test images
ci/prow/test-e2e be6f2a5 link true /test test-e2e
ci/prow/lint be6f2a5 link true /test lint
ci/prow/fips-image-scan be6f2a5 link true /test fips-image-scan

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

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.

5 participants