Releases: honeycombio/buildevents
v0.4.12
More efficient CircleCI "watch" job
If we ever end up in a state where there are no blocked jobs as well as no queued/running jobs, we don't need to loop to verify that we're done. We can just finish.
This should cause builds to end up to 2 minutes earlier in cases where it applies.
Improved subprocess management and help message suppression on error
This release fixes two bugs:
-
Explicitly use
os.Stdout
andos.Stderr
instead of depending on calls toio.Copy
in separate goroutines, preventing hangs onio.Copy
failures. -
Enable
cmd.SilenceUsage
to suppress usage message on non-zero exit
Fix bug that prevents dangling libhoney connections
Explicitly call libhoney.Close
on errors, since defers aren't called on os.Exit
Fixes for breaking changes in circleci v2 api
Fixes support for circleci v2 api. Two breaking changes addressed:
Nov 11, 2019
- The
/workflow/:workflow-id/jobs
endpoint has been moved to/workflow/:workflow-id/job
for consistency. The old route is still working at this point in time, but deprecated and will be removed on November 18th, 2019.Oct 17, 2019
start_time
andstop_time
parameters have been renamed tostarted_at
andstopped_at
to be consistent with other time-based information fields likecreated_at
andqueued_at
. This change affects the Get a Workflow's Job endpoint
Add GCP, collect extra fields after command
This release adds support for Google Cloud Build Provider and moves the extra fields collection to after the command is run. The letter means that a command can drop additional data in to the extra fields file so that it can augment the span that represents its execution.
Fix use of CircleCI API
An incorrect JSON key caused buildevents to fail to parse the response from the CircleCI API so the watch
command would not get back any jobs. This bug is fixed in this version.
Increase watch timeout
The amount of time CircleCI may spend in between one job finishing and the next starting is more variable than it used to be. The 15s timeout is insufficient; this change bumps it to 2 minutes. Thankfully, this 2 minute timeout only happens when there are jobs that will not be run in the workflow - under normal operation (all jobs finish) the watch job does not wait around.
Disable CGO for Alpine Linux compatibility
Previously released executables were dynamically linked against libc, which doesn't exist on Alpine Linux. Disabling CGO to generate statically linked executables which should run there.
JenkinsX environment variables updated
This release updates the names of the build-related environment variables for JenkinsX builds to match what's present in the environment.
Note that it is necessary to include your own environment variable named JENKINS-X
in order for the Jenkins-X environment to be detected. The variable may have any content but must not be empty.