add --merge-json cli flag to support bktec and pants#55
add --merge-json cli flag to support bktec and pants#55nprizal merged 4 commits intobuildkite:mainfrom
Conversation
57d604f to
9fe2fe2
Compare
9fe2fe2 to
0b54e45
Compare
nprizal
left a comment
There was a problem hiding this comment.
Hi @jasonwbarnett. Thank's for opening this PR. I tested this locally and the file merging is working 🎉. However, I noticed that the .lock file is not being deleted after the process, is this normal? Also do we need create the lock when --merge-json is disabled?
|
@nprizal Thanks for testing this and for the feedback! You're absolutely right — I've updated the code so that we only acquire a lock when As for the I also made a second change: we're no longer silently rescuing JSON parse errors. If there's malformed JSON in the file, it'll now raise an exception as it should. Let me know if anything else comes up! |
ee13461 to
c8fa8a9
Compare
c8fa8a9 to
dfd3225
Compare
|
@jasonwbarnett Thanks for explaining how the Filelock package works. The changes look good to me. However, there are some lint issues and failed tests on the CI. Could you please have a look? |
|
🎉 🎉 🎉 🎉 |
|
@nprizal Once this PR is merged and a new version is published to pypi.org I can wrap up buildkite/test-engine-client#323 since it requires the newly published package for those tests to pass. Specific test which is failing due to not having this published: https://buildkite.com/buildkite/test-engine-client/builds/1511/steps/canvas?jid=019756b8-20cd-4086-a4a8-8cff717330ac#019756b8-20cd-4086-a4a8-8cff717330ac/266-289 |
|
@jasonwbarnett Yes, I've checked your other PR. I'll let you know when this change is published to pypi. Thanks again for your contribution 😃 |
|
@jasonwbarnett The new version has been published to pypi 🚢🐍 https://pypi.org/project/buildkite-test-collector/1.0.4/ |
This feature is related to adding pants support to test-engine-client (i.e. buildkite/test-engine-client#323)