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

fix: avoid hitting Github limit on commit status updates #688

Merged
merged 6 commits into from
Oct 18, 2024

Conversation

leg100
Copy link
Owner

@leg100 leg100 commented Oct 17, 2024

#685 reports the Github limit of 1000 commit status updates being routinely hit.

This PR does too things to avoid this limit being hit:

  • ensures the same status update is not sent more than once, thanks to the use of a cache.
  • removes the running abstract VCS status, for which Github has no equivalent, and is not actually used anywhere else in OTF

@fsaintjacques
Copy link
Contributor

Can we also swallow the error when the limit is hit, this is non recoverable as it will never move forward.

@leg100
Copy link
Owner Author

leg100 commented Oct 18, 2024

Can we also swallow the error when the limit is hit, this is non recoverable as it will never move forward.

I've updated the PR to log and swallow the error. I've done this for any error resulting from the reporter because - as I've commented - sending updates is "best-effort".

@leg100 leg100 merged commit 029e525 into master Oct 18, 2024
5 checks passed
@leg100 leg100 deleted the fix-github-too-many-commit-statuses branch October 18, 2024 14:48
leg100 pushed a commit that referenced this pull request Oct 22, 2024
🤖 I have created a release *beep* *boop*
---


## [0.3.0](v0.2.4...v0.3.0)
(2024-10-22)


### ⚠ BREAKING CHANGES

* rename --address flag to --url; require scheme
* move to sqlc, tern ([#683](#683))

### refactor

* move to sqlc, tern ([#683](#683))
([878ebfb](878ebfb))
* rename --address flag to --url; require scheme
([3e83474](3e83474))


### Features

* add timeout settings for plans and applies
([#686](#686))
([797902b](797902b))
* allow subscription buffer size to be overridden
([#687](#687))
([d51469d](d51469d))


### Bug Fixes

* avoid hitting Github limit on commit status updates
([#688](#688))
([029e525](029e525))
* don't unnecessarily restart scheduler
([#689](#689))
([d240965](d240965))
* make linting and tests pass
([ebc1e53](ebc1e53))
* pin version of gcp pub-sub emulator docker image
([8048e72](8048e72))
* prevent subsystem failure from stopping otfd
([e5061b0](e5061b0))
* use base58 alphabet for resource IDs
([#680](#680))
([1e7d7a2](1e7d7a2))


### Miscellaneous

* bump go
([5663eab](5663eab))
* trigger new version of agent chart upon deploy
([#690](#690))
([155e026](155e026))
* unarchive
([c954c36](c954c36))
* upgrade dependencies
([59eb979](59eb979))
* use forked sse lib's module path
([fc9b138](fc9b138))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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