Skip to content

[ci] prevent categorical.model and model.txt files being left behind after testing - #6590

Merged
jameslamb merged 2 commits into
lightgbm-org:masterfrom
neNasko1:remove-file-artifacts
Aug 6, 2024
Merged

jameslamb merged 2 commits into
lightgbm-org:masterfrom
neNasko1:remove-file-artifacts

Conversation

@neNasko1

@neNasko1 neNasko1 commented Aug 5, 2024

Copy link
Copy Markdown
Contributor

Contributes to #6361.

This PR prevents categorical.model and model.txt being left after executing pytest by using the tmp_path fixture, as suggested in the linked issue.

@neNasko1 neNasko1 changed the title [ci] prevent categorical.model and model.txt files being left behind after testing [ci] prevent categorical.model and model.txt files being left behind after testing Aug 5, 2024
@neNasko1

neNasko1 commented Aug 5, 2024

Copy link
Copy Markdown
Contributor Author

@jameslamb this a fix of the issue you linked as a good-first-issue in #6586

@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 looks great.

I've merged latest master into this, to be sure it's being tested against the latest code.

Looks like master on your fork (link) is about 2 weeks behind this repo:

Screenshot 2024-08-05 at 3 05 28β€―PM

In the future, please update master on your clone of the repo before cutting a new pull request branch.

@neNasko1

neNasko1 commented Aug 5, 2024

Copy link
Copy Markdown
Contributor Author

Thanks! This looks great.
I've merged latest master into this, to be sure it's being tested against the latest code.

Thanks for the time taken!

An R test is failing with a what seems to me connectivity error. Is that the case?:

Downloading https://github.com/microsoft/LightGBM/releases/download/v2.0.12/rtools43-5550-5548.exe
Invoke-WebRequest: D:\a\LightGBM\LightGBM\.ci\test-r-package-windows.ps1:12
Line |
  12 |      Invoke-WebRequest -Uri $url -OutFile $destfile
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | One or more errors occurred. (The response ended prematurely. (ResponseEnded))
Error: Process completed with exit code 1.

@jameslamb

Copy link
Copy Markdown
Member

Yeah I think you're right that that's a temporary networking-related issue. I just manually re-triggered it.

@jameslamb
jameslamb merged commit e31cf04 into lightgbm-org:master Aug 6, 2024
@jameslamb

Copy link
Copy Markdown
Member

Thanks for the help!

@github-actions

github-actions Bot commented Aug 7, 2025

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 Aug 7, 2025
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