-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix(bitbucket): avoid extra plans using a local LRU #3402
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
Conversation
Note that people are still going to run into extra plans in these scenarios:
So the solution isn't perfect, but it's better than nothing. |
Co-authored-by: nitrocode <[email protected]>
Based on @GenPage 's comment not sure whether the PR can be merged currently, seeking clarification on that. If we store events in boltDB I'll have to throw out my existing code and rework the PR. I'd need to expire old events so DB doesn't fill up indefinitely, so each key would a value It would involve additional work and complexity compared to the current PR, for a situation that would be rendered irrelevant when bitbucket changes their webhooks again, so I'd prefer to keep the PR as-is. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Almenon I will not block the PR. It's apparent we don't have any other options regarding this without refactoring the PR model and involving the DB. Please resolve the branch conflicts with go.mod and we will merge.
@GenPage The conflicts are resolved. Glad to hear it can be merged :D. This will be my first open-source Go PR so I'm excited! It looks like a maintainer needs to approve some of the CI jobs for them to run by the way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Almenon congrats on your first contribution
what
why
tests
Unit tests. I also built the binary and ran Atlantis manually with a few test scenarios.
references
Sidenote: I ran into an error installing
pegomock
, I suggest upgrading it. I'm not going to upgrade it in this PR because it would change all the generated files and make a scary monster PR.The latest pegomock is under a different path: github.com/petergtz/pegomock/v4/pegomock@latest