-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Download actions job logs from API #33858
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
318d171
Download actions logs from API
lunny 14b6ce7
Fix swagger
lunny 3d45dc9
Merge branch 'main' into lunny/actions_log_api
lunny 9ec87c7
Add test for API actions log download
lunny 5628233
Extract actions log download function
lunny 49f1d35
Merge branch 'main' into lunny/actions_log_api
lunny bf5ccf8
Update swagger documentation
lunny 75cab36
Fix bug and test
lunny 24b215a
Merge branch 'main' into lunny/actions_log_api
lunny 940bfe9
Use job_id for the api endpoint
lunny e654bd0
Merge branch 'main' into lunny/actions_log_api
lunny 898ffff
Remove unused function
lunny 470d05e
Update routers/api/v1/repo/actions_run.go
lunny 520e732
Update models/actions/run_job_list.go
lunny 43208e4
Merge branch 'main' into lunny/actions_log_api
lunny b5d9696
Merge branch 'lunny/actions_log_api' of github.com:lunny/gitea into l…
lunny 8cbf5f2
Fix lint
lunny 1afd23d
Merge branch 'main' into lunny/actions_log_api
wxiaoguang e712ff0
fix
wxiaoguang 08638a6
Merge branch 'main' into lunny/actions_log_api
GiteaBot 8bb8e17
Merge branch 'main' into lunny/actions_log_api
GiteaBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caused #34038, It should be
jobIndex < 0
. Fixed in #34041There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I didn't see this, my workflow that I tested was to short.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I made this typo. But why tests didn't catch it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason was, this test only verifies that downloading a job log with index 0 downloads successfully.
Now this "bug" only appears for the second,third,nth job.
I have commented on the fix PR a patch to the test that expands the test to check, which I cannot push with my privilege here directly into that fix.