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

agent: combine regular failed publications in status history #1792

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

psFried
Copy link
Member

@psFried psFried commented Nov 25, 2024

This updates the publication history in the controller status. We already reduced consecutive touch publications in the history. This is important because it prevents touch publications, which can sometimes number in the hundreds per day, from quickly pushing out other relevant information from the publication history. But it turns out there's another case where repeated publications can clog up the history. This happens from repeated build failures, since we retry them indefinitely.

Previously, the rule was that we'd never combine non-touch publications. The goal was to make sure that we always show distinct history entries for publications that modify the model. This tweaks that rule so that we will combine unsuccessful non-touch publications. The result is that the publications history in the status remains a lot more readable and useful when there are repeated auto-discover publication failures.


This change is Reviewable

This updates the publication history in the controller status. We already
reduced consecutive touch publications in the history. This is important
because it prevents touch publications, which can sometimes number in the
hundreds per day, from quickly pushing out other relevant information from the
publication history.  But it turns out there's another case where repeated
publications can clog up the history. This happens from repeated regular
(non-touch) build failures, since we retry them indefinitely.

Previously, the rule was that we'd never combine non-touch publications. The
goal was to make sure that we always show distinct history entries for
publications that modify the model.  This tweaks that rule so that we will
combine _unsucessful_ non-touch publications. The result is that the
publications history in the status remains a lot more readable and useful when
there are repeated auto-discover publication failures.
Copy link
Contributor

@jshearer jshearer left a comment

Choose a reason for hiding this comment

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

LGTM

@psFried psFried merged commit 1ae5a3b into master Nov 25, 2024
3 checks passed
@psFried psFried deleted the phil/pub-history branch November 25, 2024 14:07
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.

2 participants