Uh oh!
There was an error while loading. Please reload this page.
GH-45521: [CI][Dev][R] Install required cyclocomp package to be used with R lintr - #45524
Conversation
raulcd
commented
Feb 13, 2025
This fixes the lintr job on This is due to a new default linter on the new
I am unsure why this fails on this job and not the other one. |
raulcd
commented
Feb 13, 2025
|
raulcd
commented
Feb 13, 2025
Once we disable I think the easier approach here is to temporarily pin |
raulcd
commented
Feb 13, 2025
@jonkeane it seems we run linting differently from the Windows R release job and the Dev linting job. On the Dev linting job installing |
| RUN echo "MAKEFLAGS=-j$(R -s -e 'cat(parallel::detectCores())')" >> $(R RHOME)/etc/Renviron.site | ||
| # We don't need arrow's dependencies, only lintr (and its dependencies) | ||
| RUN R -e "install.packages('lintr')" | ||
| RUN R -e "install.packages('cyclocomp')" |
There was a problem hiding this comment.
Can we remove this if we pin lintr to 3.1.2?
There was a problem hiding this comment.
I wasn't able to pin here to 3.1.2, CRAN says is not available:
2025-02-13T13:40:04.1633160Z #15 0.292 > install.packages('lintr@3.1.2')
2025-02-13T13:40:04.3161054Z #15 0.294 Installing package into '/usr/local/lib/R/site-library'
2025-02-13T13:40:04.3161668Z #15 0.294 (as 'lib' is unspecified)
2025-02-13T13:40:11.3252442Z #15 7.454 Warning message:
2025-02-13T13:40:11.3253097Z #15 7.454 package 'lintr@3.1.2' is not available for this version of R
2025-02-13T13:40:11.3253653Z #15 7.454 2025-02-13T13:40:11.3254046Z #15 7.454 A version of this package for your version of R might be available elsewhere,
2025-02-13T13:40:11.3254443Z #15 7.454 see the ideas at
2025-02-13T13:40:11.3254875Z #15 7.454 https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages 2025-02-13T13:40:11.3255293Z #15 7.454 > 2025-02-13T13:40:11.3255459Z #15 7.454 > There was a problem hiding this comment.
Ah, the .github/workflows/r.yml change isn't related to this change.
I thought that the pin in r.yml suppressed the lint error. But the lint error was caused by missing cyclocomp. (Found unused settings in config file (.lintr): unused_settings is just a warning. It's not an error.)
jonkeane
commented
Feb 14, 2025
Strong agree that we should follow on later with fixes. Do we want a new issue or can we repurpose #45521 to be the follow on (and merge this PR as is)? |
raulcd
commented
Feb 14, 2025
| RUN echo "MAKEFLAGS=-j$(R -s -e 'cat(parallel::detectCores())')" >> $(R RHOME)/etc/Renviron.site | ||
| # We don't need arrow's dependencies, only lintr (and its dependencies) | ||
| RUN R -e "install.packages('lintr')" | ||
| RUN R -e "install.packages('cyclocomp')" |
There was a problem hiding this comment.
Ah, the .github/workflows/r.yml change isn't related to this change.
I thought that the pin in r.yml suppressed the lint error. But the lint error was caused by missing cyclocomp. (Found unused settings in config file (.lintr): unused_settings is just a warning. It's not an error.)
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 43d6f79. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 13 possible false positives for unstable benchmarks that are known to sometimes produce them. |
…with R lintr (#45524) ### Rationale for this change The linting jobs are failing due to the new version of `lintr` not installing `cyclocomp` anymore. We use `cyclocomp` but this is not part of the default linters of `lintr` anymore. We should install it individually. ### What changes are included in this PR? Install `cyclocomp` as part of setting up the linting environment for R on our linting job. Pin old version of `lintr` for R Windows job as it otherwise fails with a lot of new linter issues. ### Are these changes tested? Yes via CI. ### Are there any user-facing changes? No * GitHub Issue: #45521 Authored-by: Raúl Cumplido <raulcumplido@gmail.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Rationale for this change
The linting jobs are failing due to the new version of
lintrnot installingcyclocompanymore.We use
cyclocompbut this is not part of the default linters oflintranymore. We should install it individually.What changes are included in this PR?
Install
cyclocompas part of setting up the linting environment for R on our linting job.Pin old version of
lintrfor R Windows job as it otherwise fails with a lot of new linter issues.Are these changes tested?
Yes via CI.
Are there any user-facing changes?
No