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

On commit status refresh and with no check run updates, use cached version of action retrieves #13531

Merged
merged 1 commit into from Dec 16, 2021

Conversation

tidy-dev
Copy link
Contributor

@tidy-dev tidy-dev commented Dec 14, 2021

Description

@sergiou87 caught a caching bug that was most reproducible if you opened the check runs popover and then navigate away from desktop for a > minute (status refresh wait time). Then return to app and close and open the popover, the action job steps will no longer show but the checks will. Apparently loading the checks as if action job steps/workflow were not applicable to the repo.

Below showing no job steps when jobs steps should be present.
image

@niik paired with me on it and narrowed it down to where we have a condition that says not to retrieve the action steps if the checks did not change between last refresh. Currently we were just using the new checks with no action steps. This PR updates it to map the currently cached action workflow and job steps to the just refreshed checks.

In a future PR, we may try to split the actions workflow and job step caching from the commit store to make this logic cleaner and hopefully easier to catch this sort of problem.

Screenshots

After trying 3 times to reproduce, I am unable too.
image

Release notes

Notes: [Fixed] Job steps on pull-request check run list are no longer intermittently missing

Co-Authored-By: Markus Olsson <634063+niik@users.noreply.github.com>
Copy link
Member

@sergiou87 sergiou87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!!

@tidy-dev tidy-dev merged commit f13ea49 into development Dec 16, 2021
@tidy-dev tidy-dev deleted the fix-not-showing-job-steps-sometimes branch December 16, 2021 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants