Update for changes in Travis CI's webhook payload format.
Review Request #10970 — Created March 26, 2020 and submitted
Travis CI has made some changes to their webhook payload. These are
currently effective on travis-ci.com, and will likely be making it to
travis-ci.org soon.The biggest of these is that the
global_env
key is completely gone.
There's a top-levelenv
key, but that's in a weird hard-to-parse
format. I've changed it to pull the relevant keys out of the matrix data
instead.Second, I was encountering a new
errored
state for some builds. I've
added handling for this and logging for any future states which we don't
handle.
Posted some changes that triggered Travis CI builds and saw the webhook
handler work correctly.
Description | From | Last Updated |
---|---|---|
Can you add unit tests for the configuration parsing, errors around it, and the error states? |
chipx86 | |
Can we also end up with an IndexError due to the [0]? |
chipx86 | |
It'd be nice to have something in here to reference maybe the build, or configuration, or something. Otherwise we have … |
chipx86 | |
E501 line too long (80 > 79 characters) |
reviewbot | |
F811 redefinition of unused 'test_webhook_bad_integration_config' from line 371 |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot |