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

Testing r.pkg.template modifications for faster testing #1329

Closed
wants to merge 10 commits into from

Conversation

llrs-roche
Copy link
Contributor

Pull Request

Do not merge

Part of : https://github.com/insightsengineering/coredev-tasks/issues/580

This PR has modifications on:

In its current form all the tests should be run at take 2h.

Remove the modification on the helper file and it should only run tests specific to the module and test file modified.

@llrs-roche
Copy link
Contributor Author

llrs-roche commented Feb 3, 2025

  • GHA running everything: helper file and modules files were modified.
    Check run for SHA 8b199ee above: it took more than ~1 hour.

  • GHA which should use only test of specific modules: two modules files were modified.
    Check run for SHA c181d98 below: it took just 9 minutes to run the CI/CD.

@@ -21,7 +21,7 @@ jobs:
uses: insightsengineering/r.pkg.template/.github/workflows/audit.yaml@main
r-cmd:
name: R CMD Check 🧬
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@38b63dee0b54d8b50dd360b1b40258feb081ed54
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@38b63dee0b54d8b50dd360b1b40258feb081ed54
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main

Just adding a suggestion to block accidental merge with this.

Copy link
Contributor

Choose a reason for hiding this comment

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

But I think you can just use the feature branch here so any updates on the branch will be reflected by simply triggering the workflow here.

Copy link
Contributor Author

@llrs-roche llrs-roche Feb 4, 2025

Choose a reason for hiding this comment

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

Thanks for opening a comment. The problem with the feature branch was that it didn't like having multiple @ (the branch name is 580_module_tests@main): 338e058 (#1329) and it didn't trigger the tests. After that I use the commits to be able to run the checks manually.

@@ -44,7 +44,7 @@ jobs:
deps-installation-method: setup-r-dependencies
r-cmd-non-cran:
name: R CMD Check (non-CRAN) 🧬
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@38b63dee0b54d8b50dd360b1b40258feb081ed54
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@38b63dee0b54d8b50dd360b1b40258feb081ed54
uses: insightsengineering/r.pkg.template/.github/workflows/build-check-install.yaml@main

Just adding a suggestion to block accidental merge with this.

@llrs-roche
Copy link
Contributor Author

Testing is happening on #1332

@llrs-roche llrs-roche closed this Feb 6, 2025
@llrs-roche llrs-roche deleted the 580_adhoc_test@main branch February 6, 2025 10:29
@github-actions github-actions bot locked and limited conversation to collaborators Feb 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants