🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

fix(github-graphql): fix empty startedAt field - #8536

Merged
klesh merged 1 commit into
apache:mainfrom
petkostas:fix/8490-empty-start-date-github
Aug 14, 2025
Merged

klesh merged 1 commit into
apache:mainfrom
petkostas:fix/8490-empty-start-date-github

Conversation

@petkostas

Copy link
Copy Markdown
Contributor

Summary

GitHub GraphQL API can return check runs with nil or a zero StartedAt (manual testing over GitHub API returns a zero time.Time value -0001-01-01-) time for jobs that were skipped immediately. These jobs have a CompletedAt time (when they were skipped) but no actual start time resulting to the extractor crashing.

Does this close any open issues?

Closes #8490

Screenshots

TODO: Add the screenshot of the output

Other Information

We should decide if we should skip those jobs or if we should use the completedAt as the startedAt time.

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. component/plugins This issue or PR relates to plugins pr-type/bug-fix This PR fixes a bug severity/p1 This bug affects functionality or significantly affect ux labels Aug 13, 2025
@petkostas petkostas self-assigned this Aug 13, 2025
GitHub GraphQL API can return check runs with nil or a zero `StartedAt`
(manual testing over GitHub API returns a zero `time.Time` value
-0001-01-01-) time for jobs that were skipped immediately. These jobs
have a CompletedAt time (when they were skipped) but no actual start
time resulting to the extractor crashing.
@petkostas
petkostas force-pushed the fix/8490-empty-start-date-github branch from fdd419b to d814de3 Compare August 13, 2025 17:15
@klesh

klesh commented Aug 14, 2025

Copy link
Copy Markdown
Contributor

Good work, the comment is clear and easy to understand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/plugins This issue or PR relates to plugins pr-type/bug-fix This PR fixes a bug severity/p1 This bug affects functionality or significantly affect ux size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][GitHub] Error extracting GitHub data - incorrect datetime value

2 participants