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

[Automation] - Adjust cypress execution to generate html report on Jenkins #12100

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

izaac
Copy link
Contributor

@izaac izaac commented Oct 2, 2024

Summary

Fixes #
rancher/qa-tasks#1549

Occurred changes and/or fixed issues

Adding logic to generate HTML reports in the multi branch Jenkins pipelines

Technical notes summary

Basically the json that extended the current cypress config was replaced with our own Jenkins config.
The Jenkinsfile was updated for retrieving the report files from the CI node. The corral package was also updated in a separate PR for this purpose, and these PRs are mutually dependent.
The cypress-mochawesome-report lib is added as devDependency in package.json

Areas or cases that should be tested

GA CI
Jenkins CI

Areas which could experience regressions

Automation jobs

Related

rancherlabs/corral-packages#65

Checklist

  • The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
  • The PR has a Milestone
  • The PR template has been filled out
  • The PR has been self reviewed
  • The PR has a reviewer assigned
  • The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
  • The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes

@izaac
Copy link
Contributor Author

izaac commented Oct 7, 2024

@yonasberhe23 @rancher-max I moved the json configuration that supplemented the cypress.config.ts in the repo root to a dedicated cypress config. I've tested and it's working on branches other than master (release-2.7 ..). Although I had to make changes to make it work on the others, like the testDirs set.

This will need backports of cypress/support/e2e.ts, package.json and yarn.lock to include cypress-mochawesome-reporter as devDependencies. Which should be an innocuous change for dashboard.

@izaac
Copy link
Contributor Author

izaac commented Oct 7, 2024

Related PRs:
DevDependency 2.9: #12163
DevDependency 2.8: #12164
DevDependency 2.7: #12165

@izaac izaac marked this pull request as ready for review October 7, 2024 22:10
@izaac izaac added the area/ci CI and automation related, e.g. GitHub Actions label Oct 7, 2024
yonasberhe23
yonasberhe23 previously approved these changes Oct 8, 2024
@izaac
Copy link
Contributor Author

izaac commented Oct 9, 2024

This depends on the corral-package PR in the description. I'm still working on getting that merged

@izaac izaac merged commit d01a49b into rancher:master Oct 14, 2024
31 checks passed
@izaac izaac deleted the jenkins_debug branch October 14, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci CI and automation related, e.g. GitHub Actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants