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

switch to r-lib/actions/setup-r-dependencies@v2 #274

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

m7pr
Copy link
Contributor

@m7pr m7pr commented Jan 29, 2025

@m7pr m7pr requested review from pawelru and a team January 29, 2025 15:33
Copy link
Contributor

@cicdguy cicdguy left a comment

Choose a reason for hiding this comment

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

Looks good

Copy link
Contributor

github-actions bot commented Jan 29, 2025

Unit Tests Summary

3 tests   3 ✅  6s ⏱️
3 suites  0 💤
1 files    0 ❌

Results for commit ba60dbe.

♻️ This comment has been updated with latest results.

@@ -441,7 +441,7 @@ jobs:
if: >-
env.deps_installation_method == 'setup-r-dependencies'
&& inputs.install-deps-from-package-repositories == ''
uses: insightsengineering/setup-r-dependencies@v1
uses: r-lib/actions/setup-r-dependencies@v2
Copy link
Contributor

Choose a reason for hiding this comment

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

in lines below this we need to adjust the parameters

Copy link
Contributor

Choose a reason for hiding this comment

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

unresolving this as this is still applicable
this action cannot use r-lib/actions/setup-r-dependencies@v2 and pass lookup-refs and other custom parameters

Copy link
Contributor

Choose a reason for hiding this comment

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

the same applies for other places - we need to make sure that we call that action with supported parameters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, so this PR is ready to go, just all other repos can't pass

  • repository-list
  • lookup-refs
  • skip-desc-dev
  • skip-desc-branch

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also removed those parameters from actual job configurations b9096a7

@pawelru
Copy link
Contributor

pawelru commented Jan 29, 2025

These are good changes but not complete as of now.
Also - this can be merged only if Remotes is added in all (!) the repos. Please note that!

@m7pr
Copy link
Contributor Author

m7pr commented Jan 29, 2025

I'll be testing with this teal PR insightsengineering/teal#1466
but will first check your comments and advices

@m7pr
Copy link
Contributor Author

m7pr commented Jan 29, 2025

@pawelru

if Remotes is added in all (!) the repos.

by all, how many we are talking about? all in https://github.com/insightsengineering org?

@pawelru pawelru marked this pull request as draft January 29, 2025 15:44
@pawelru
Copy link
Contributor

pawelru commented Jan 29, 2025

@pawelru

if Remotes is added in all (!) the repos.

by all, how many we are talking about? all in https://github.com/insightsengineering org?

All where necessary. Obviously these live in our org and include also tern and family etc.

@m7pr
Copy link
Contributor Author

m7pr commented Jan 29, 2025

@pawelru so far I adjusted possible inputs that are passed to r-lib/actions/setup-r-dependencies@v2 and removed those inputs from example teal PR insightsengineering/teal#1466

@m7pr m7pr requested a review from cicdguy January 30, 2025 08:07
@m7pr m7pr marked this pull request as ready for review January 30, 2025 08:07
Copy link
Contributor

@pawelru pawelru left a comment

Choose a reason for hiding this comment

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

This is a good one and I'm ok with that but please note that it's a breaking change for all the packages that are still using lookup-refs parameter! Hence not approving formally but just saying it's good but others are not ready.

env:
GITHUB_PAT: ${{ steps.github-token.outputs.token }}
with:
lookup-refs: ${{ inputs.lookup-refs }}
repository-path: ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pawelru do you think we also should remove repository-path?
r-lib/actions/setup-r-dependencies@v2 does not support this

If we need this, then I guess we need to stick with insightsengineering/setup-r-dependencies@v1

Copy link
Contributor

Choose a reason for hiding this comment

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

from what I can see there is a working-directory parameter so we can pass it there

Comment on lines 96 to 97
skip-install: true
restore-description: false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pawelru similar to this conversation https://github.com/insightsengineering/r.pkg.template/pull/274/files#r1935570098

skip-install and restore-description are not part of r-lib/actions/setup-r-dependencies@v2

Should we remove those? Can we remove those? If we need those, should we stick to insightsengineering/setup-r-dependencies@v1

Copy link
Contributor

Choose a reason for hiding this comment

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

this is definitely to be removed - it's very specific to the logic of ie/setup-r-deps

Co-authored-by: Pawel Rucki <[email protected]>
Signed-off-by: Marcin <[email protected]>
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.

3 participants