Explain when a negative number prefix appears

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2025-04-11 10:26:14 +01:00
parent d35236948c
commit 5adf3285ec
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E

View file

@ -653,6 +653,9 @@ func truncateAsUTF16(str string, max int) string {
// the prefixed number is either:
// - An ordinal and cannot be mapped to the corresponding job's ID.
// - A negative integer which is the ID of the job in the old Actions service.
// The service right now tries to get logs and use an ordinal in a loop.
// However, if it doesn't get the logs, it falls back to an old service
// where the ID can apparently be negative.
func attachRunLog(rlz *zip.Reader, jobs []shared.Job) {
for i, job := range jobs {
re := jobLogFilenameRegexp(job)