fix: forgejo-runner validate exit with error when validation fails #1009
Labels
No labels
FreeBSD
Kind/Breaking
Kind/Bug
Kind/Chore
Kind/DependencyUpdate
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
Windows
linux-powerpc64le
linux-riscv64
linux-s390x
run-end-to-end-tests
run-forgejo-tests
run-multi-platform-tests
No milestone
No assignees
3 participants
Notifications
Due date
No due date set.
Reference
forgejo/runner!1009
Loading…
Reference in a new issue
No description provided.
Delete branch "earl-warren/runner:wip-validate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fix: forgejo-runner validate exit on error when validation failsto WIP: fix: forgejo-runner validate exit on error when validation failsMaybe “exit with error” instead of “on error”? It’s not very clear that this implements error codes for exits rather than exiting when validation fails (which it already does, once it’s done validating). :)
I glanced over the code too and didn’t spot any obvious flaws—but my Go-fu is not very strong and I didn’t look in‐depth to try and decipher what was going on in more detail. It doesn’t seem like any tests were added to check for non-zero exit codes though? Maybe I’m missing something.
WIP: fix: forgejo-runner validate exit on error when validation failsto WIP: fix: forgejo-runner validate exit with error when validation fails2e2e0846132e83c0662bWIP: fix: forgejo-runner validate exit with error when validation failsto fix: forgejo-runner validate exit with error when validation failsThe tests at #1009/files now have a message field set which is verified to be contained in the error returned by validation. It was previously expected to be empty, meaning no error returned.
The CLI library will exit on error if a non nil error is returned.
Done.
2e83c0662b8c6c089a65verboseto on #1015