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

1518 upversion lock #1519

Merged
merged 8 commits into from
Oct 20, 2022
Merged

1518 upversion lock #1519

merged 8 commits into from
Oct 20, 2022

Conversation

bms63
Copy link
Collaborator

@bms63 bms63 commented Oct 18, 2022

Thank you for your Pull Request! We have developed this task checklist from the Development Process Guide to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your code as well as making sure the admiral codebase remains robust and consistent.

Please check off each taskbox as an acknowledgment that you completed the task or check off that it is not relevant to your Pull Request. This checklist is part of the Github Action workflows and the Pull Request will not be merged into the devel branch until you have checked off each task.

  • Place Closes #<insert_issue_number> into the beginning of your Pull Request Title (Use Edit button in top-right if you need to update)
  • Code is formatted according to the tidyverse style guide. Run styler::style_file() to style R and Rmd files
  • Updated relevant unit tests or have written new unit tests - See Unit Test Guide
  • If you removed/replaced any function and/or function parameters, did you fully follow the deprecation guidance?
  • Update to all relevant roxygen headers and examples
  • Run devtools::document() so all .Rd files in the man folder and the NAMESPACE file in the project root are updated appropriately
  • Address any updates needed for vignettes and/or templates
  • Update NEWS.md if the changes pertain to a user-facing function (i.e. it has an @export tag) or documentation aimed at users (rather than developers)
  • Build admiral site pkgdown::build_site() and check that all affected examples are displayed correctly and that all new functions occur on the "Reference" page.
  • Address or fix all lintr warnings and errors - lintr::lint_package()
  • Run R CMD check locally and address all errors and warnings - devtools::check()
  • Link the issue in the Development Section on the right hand side.
  • Address all merge conflicts and resolve appropriately
  • Pat yourself on the back for a job well done! Much love to your accomplishment!

@github-actions
Copy link

github-actions bot commented Oct 18, 2022

Code Coverage

Package Line Rate Health
admiral 98%
Summary 98% (3777 / 3865)

@bms63
Copy link
Collaborator Author

bms63 commented Oct 18, 2022

Time to use that fancy tech!!

@bundfussr
Copy link
Collaborator

I think at the moment none of the R-CMD checks uses renv.lock. Shouldn't we use it for the 4.0 check?

@bms63
Copy link
Collaborator Author

bms63 commented Oct 18, 2022

I think at the moment none of the R-CMD checks uses renv.lock. Shouldn't we use it for the 4.0 check?

Not sure I am following.

I'm pretty sure the lock file is used for the other checks: man, lintr and test coverage, but it is not used for the R-CMD checks

@bundfussr
Copy link
Collaborator

In the past we used renv.lock for the 3.6 R-CMD check and for the other R-CMD checks the package versions available at the release date of the corresponding version.
As we move from 3.6 to 4.0 now, should we use renv.lock for the 4.0 R-CMD check.

@bms63
Copy link
Collaborator Author

bms63 commented Oct 18, 2022

I don't believe the lock file is needed in the R-CMD check workflow anymore.

I just did a quick scan, and I don't see it referenced anywhere. The lock file has lots of packages that don't need to be installed to run the R-CMD checks (i.e. the imports versus the suggests). I think this is why it was removed from this workflow

https://github.com/pharmaverse/admiralci/blob/main/.github/workflows/r-cmd-check.yml

@bundfussr
Copy link
Collaborator

OK, I see.

@bundfussr
Copy link
Collaborator

On the other hand, in #1512 I used dplyr 1.0.0 functionality in one of the examples but forgot to update renv.lock. All R-CMD check passed (because they did not use renv.lock). But if we have merged the PR, local R-CMD check would fail for all developers and contributors who use renv.lock.
So maybe it would be better to use renv.lock for the lowest version we are testing.
@bms63 , @thomas-neitmann , what do you think?

@bms63
Copy link
Collaborator Author

bms63 commented Oct 19, 2022

@bundfussr made a separate issue. Can we update lock file? happy to discuss more

@bundfussr
Copy link
Collaborator

It seems that the workflows are still using R 3.6 but I do not know why. @cicdguy , could you have a look.

renv.lock Outdated Show resolved Hide resolved
bundfussr and others added 3 commits October 20, 2022 12:00
Co-authored-by: Dinakar <26552821+cicdguy@users.noreply.github.com>
Co-authored-by: Dinakar <26552821+cicdguy@users.noreply.github.com>
@cicdguy
Copy link
Collaborator

cicdguy commented Oct 20, 2022

It seems that the workflows are still using R 3.6 but I do not know why. @cicdguy , could you have a look.

Ok, yes. Something is amiss. I am investigating.

@cicdguy
Copy link
Collaborator

cicdguy commented Oct 20, 2022

Ah, it's a GitHub shenanigan: actions/runner#1189
The environment variable doesn't get translated from the top level of the workflow as an input variable. We'll need to un-DRY the workflow. I'll do it in this PR. We need to do the same everywhere else for all pipelines as well.

@cicdguy
Copy link
Collaborator

cicdguy commented Oct 20, 2022

@bundfussr and @bms63 - we'll need to make similar changes everywhere for all admiral packages. Unfortunate that GitHub doesn't support such a basic feature.

@bundfussr
Copy link
Collaborator

Thanks @cicdguy ! I have created corresponding issues in admiraldev and admiralonco.

@bundfussr
Copy link
Collaborator

@cicdguy , by the way, are you aware of the following warning occurring in "Normalize inputs"?

Warning: The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

@bundfussr bundfussr merged commit d85eb9f into devel Oct 20, 2022
@bundfussr bundfussr deleted the 1518_upversion_lock branch October 20, 2022 12:00
@cicdguy
Copy link
Collaborator

cicdguy commented Oct 20, 2022

@cicdguy , by the way, are you aware of the following warning occurring in "Normalize inputs"?

Warning: The set-output command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Yes, we are aware of this one and will resolve it at some point.

@bms63 bms63 linked an issue Oct 26, 2022 that may be closed by this pull request
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.

General Issue: Upversion renv.lock file and relevant files
3 participants