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

[Feature] The excavator GitHub action run does not report error if something fails to update #4863

Closed
CrendKing opened this issue Apr 11, 2022 · 5 comments · Fixed by #4896
Closed
Labels

Comments

@CrendKing
Copy link
Contributor

Bug Report

Current Behavior

Take a look at the "Excavate" step of this GitHub Action run: https://github.com/ScoopInstaller/Extras/runs/5963485483. There are plenty of errors that some apps fail to update. However, the whole run completed successfully. If no one notices these hidden errors, some apps may never get auto updated. This is not big problem of large repo like Scoop/Extras, but could be for people that maintain personal bucket.

Expected Behavior

If the current behavior is expected, that for some reason you guys don't want error from the action run, please provide an option so that personal bucket maintainers can get notification when action fails.

Additional context/output

Not sure if this issue belongs here or https://github.com/ScoopInstaller/GithubActions.

Possible Solution

Is this because https://github.com/ScoopInstaller/GithubActions/blob/main/src/ActionWrapper.psm1 Invoke-Action does not propagate the error from autoupdate.ps1?

System details

Windows version: 11

OS architecture: 64bit

PowerShell version: 7.2.2

Scoop Configuration

{
  "SCOOP_REPO": "https://github.com/ScoopInstaller/Scoop",
  "SCOOP_BRANCH": "master",
  "shim": "kiennq",
  "ignore_running_processes": true,
  "aria2-warning-enabled": false
}
@CrendKing CrendKing added the bug label Apr 11, 2022
@rashil2000
Copy link
Member

The current behavior is intentional. Given the immensely dynamic nature of webpages that checkver scrapes, the chance of failure, even if you have something like 4-5 manifests, is quite high. Bucket maintainers would see a lot of runs failed as a result.

@CrendKing
Copy link
Contributor Author

CrendKing commented Apr 11, 2022

I figured so. That's why I put this as feature request. The app count in many self maintained buckets are quite manageable (I have one myself), and they usually have very few maintainers. Errors like this could go undetected for long time if they don't get notification.

I have no experience at working on github action, but if you think adding an option to turn on error reporting a good idea, I could try a pull request.

@rashil2000
Copy link
Member

An optional, off by default setting should be good.

@CrendKing
Copy link
Contributor Author

That's my intention.

@CrendKing
Copy link
Contributor Author

The PR consists of two parts:

#4867
ScoopInstaller/GithubActions#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants