Skip to content

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

Merged
StrikerRUS merged 10 commits into
masterfrom
ci/yamlint-4
Jan 30, 2025
Merged

StrikerRUS merged 10 commits into
masterfrom
ci/yamlint-4

Conversation

@StrikerRUS

@StrikerRUS StrikerRUS commented Jan 27, 2025 •

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Comment thread .vsts-ci.yml
- script: |
git clean -d -f -x
displayName: 'Clean source directory'
# yamllint disable rule:line-length

Copy link
Copy Markdown
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)

submodules: true
- name: Install packages
shell: bash
# yamllint disable rule:line-length

Copy link
Copy Markdown
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

@jameslamb jameslamb left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

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
Copy Markdown
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
@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
@github-actions

github-actions Bot commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants