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(jenkins): mark builds processed when fastforwarding #754

Merged
merged 2 commits into from
May 18, 2020

Conversation

marchello2000
Copy link
Contributor

Two main changes here:

  1. Add a metric for when we skip sending events (same as DockerMonitor
  2. Mark the build processed even if we don't send an event to echo (because we are fast-forwarding), again same as DockerMonitor

The idea behind #2 is that when we have two igors: one actively sending events, the other just fast-forwarding to be ready to send events if needed.
When we switch which igor triggers events to echo, we need to make sure we don't double trigger on builds in the past. Without this change, we would re-trigger the builds in the last few minutes due to the cache being fast-forwarded only when the running builds list is empty

Two main changes here:
1. Add a metric for when we skip sending events (same as [`DockerMonitor`](https://github.com/spinnaker/igor/blob/master/igor-web/src/main/groovy/com/netflix/spinnaker/igor/docker/DockerMonitor.groovy#L155)
2. Mark the build processed even if we don't send an event to `echo` (because we are fastforwarding), again same as [`DockerMonitor`](https://github.com/spinnaker/igor/blob/master/igor-web/src/main/groovy/com/netflix/spinnaker/igor/docker/DockerMonitor.groovy#L150)

The idea behind #2 is that when we have two `igor`s: one actively sending events, the other just fast-forwarding to be ready to send events if needed.
When we switch which `igor` triggers events to `echo`, we need to make sure we don't double trigger on builds in the past. Without this change, we would re-trigger the builds in the last few minutes due to cache being fast forwarded only when the running builds list is [empty](https://github.com/spinnaker/igor/blob/master/igor-web/src/main/groovy/com/netflix/spinnaker/igor/jenkins/JenkinsBuildMonitor.groovy#L209)
@marchello2000 marchello2000 added the ready to merge Approved and ready for merge label May 18, 2020
@mergify mergify bot merged commit 3b56280 into spinnaker:master May 18, 2020
@mergify mergify bot added the auto merged label May 18, 2020
@marchello2000 marchello2000 deleted the mark/fixup_jenkins_monitor branch May 18, 2020 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants