Skip to content

Testing publish-Reposense on every push/PR on the main repo. #2384

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

Open
CYX22222003 opened this issue Apr 4, 2025 · 0 comments
Open

Testing publish-Reposense on every push/PR on the main repo. #2384

CYX22222003 opened this issue Apr 4, 2025 · 0 comments
Labels
a-DevOps c.Feature github_actions Pull requests that update GitHub Actions code

Comments

@CYX22222003
Copy link
Contributor

CYX22222003 commented Apr 4, 2025

What feature(s) would you like to see in RepoSense

When any PR or changes that have been made on main repo, we want to trigger a workflow that will test the whole report-generation logic at the publish-Reposense with the new changes. This is to detect early regression.

Work done in #2295 explores the use of lighthouse CLI to detect possible blank pages due to possible routing issues.

To fully solve the issue, we may need to integrate the techniques to trigger workflow in another repository with Github Actions (ref)

Is the feature request related to a problem?

#2285
#2295

If possible, describe the solution

Some ideas on possible implementation:

  1. The event will trigger a POST request to the relevant API that will trigger the workflow in publish-Reposense, the request's payload should contain information such as PR number or commit hash.
  2. publish-Reposense need to check out to the correct version of main repo jar file using the payload through running the downloading utility scripts.
  3. Set up jekyll building environment to run github pages on publish-Reposense's github action runner
  4. Deploy the website on github action runner
  5. Use Lighthouse CLI to audit the website, it will exit with error when the page is blank.

Additional context

Useful resources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-DevOps c.Feature github_actions Pull requests that update GitHub Actions code
Projects
Status: No status
Development

No branches or pull requests

1 participant