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

[ci] fix errors about line length in yaml files (Part 4) #6804

Merged
merged 10 commits into from
Jan 30, 2025

Conversation

StrikerRUS
Copy link
Collaborator

@StrikerRUS StrikerRUS commented Jan 27, 2025

Last PR in series of PRs for linting yaml files.

This PR fixes long lines error.

Continuation of #6794.
See #6758 for background and future PRs' content required to fix all errors with the proposed config.
Closed #6758.

Comment on lines +9 to +12
if: |
github.event.issue.pull_request &&
contains('OWNER,MEMBER,COLLABORATOR', github.event.comment.author_association) &&
startsWith(github.event.comment.body, '/gha run')
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@@ -394,6 +414,7 @@ jobs:
- script: |
git clean -d -f -x
displayName: 'Clean source directory'
# yamllint disable rule:line-length
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Refer to #6758 (comment)

@@ -63,10 +63,12 @@ jobs:
submodules: true
- name: Install packages
shell: bash
# yamllint disable rule:line-length
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I wasn't able to make disable-line directive work with multiline string.

@StrikerRUS StrikerRUS changed the title [WIP][ci] fix errors about comments indentation in yaml files (Part 4) [ci] fix errors about comments indentation in yaml files (Part 4) Jan 28, 2025
@StrikerRUS StrikerRUS marked this pull request as ready for review January 28, 2025 22:49
Copy link
Collaborator

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

Thanks, this all looks good to me! I appreciate the comments you left on the diff explaining some of the workarounds .

Comment on lines +248 to +250
R_LIBS="c('R6', 'data.table', 'jsonlite', 'knitr', 'markdown', 'Matrix', 'RhpcBLASctl', 'testthat')"
RDscript${{ matrix.r_customization }} \
-e "install.packages(${R_LIBS}, repos = 'https://cran.rstudio.com', Ncpus = parallel::detectCores())"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm ok with this for now now. But I think we should eventually just move all these R package installs into a single CI script like ci/install-r-deps.R, to reduce duplication. Would you support something like that? I can put up a PR if you agree.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Absolutely, it would be great!

@StrikerRUS StrikerRUS merged commit 425395d into master Jan 30, 2025
49 checks passed
@StrikerRUS StrikerRUS deleted the ci/yamlint-4 branch January 30, 2025 09:21
@StrikerRUS StrikerRUS changed the title [ci] fix errors about comments indentation in yaml files (Part 4) [ci] fix errors about line length in yaml files (Part 4) Jan 30, 2025
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.

2 participants