-
Notifications
You must be signed in to change notification settings - Fork 7
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
Update to fapi-client v4.0.6 #1526
Conversation
This is a small upgrade, catching up with the recent dependency updates of https://github.com/guardian/facia-scala-client/releases/tag/v4.0.6, before the more extensive update in guardian/facia-scala-client#287 is introduced. This update has already been tested in Ophan's PromotionPoller with guardian/ophan#5540, successfully deployed to Prodution.
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.
This one should be good too 🙂
The GitHub CI job for the merged main commit 10b6b60 originally failed with what looks to be a flakey test:
...this test passed when it was originally run on the PR branch, and then passed when the main-branch CI was re-run. As it turns out - the main commit originally failing CI and not getting deployed was actually fortuitous, because there really is a problem with this PR, just not anything the current tests would show - a This probably wasn't seen with https://github.com/guardian/ophan/pull/5540, guardian/frontend#26578 or https://github.com/guardian/apple-news/pull/263 because those projects happened to already have a compatible set of versions for those dependencies (those projects all use Scala Steward, so are all using the latest versions). However, it was seen with guardian/story-packages#184, where it caused an outage (arrgh). I'm reverting this PR as it's not safe to deploy - I'll try to create a new PR with a test (perhaps like the tests added in https://github.com/guardian/ophan/pull/4719 or guardian/frontend#25139?. |
It isn't unusual for versions of FAPI and CAPI to get out of sync and for this to cause run time errors. Is there any easy way we can consider evictions to be a build failure but only for specific libraries? |
I think the message by Prout yesterday at 3:14pm on 26th September ("Seen on PROD (merged by @rtyley 309 hours, 8 minutes and 16 seconds ago)") is misleading, in terms of its timing. In truth, this PR (with commit 10b6b60) would finally have 'made it' to Production when #1527 went out with commit 256f5c8, reverting this PR, on 14th September (deploy). It's a failing on Prout's part that it didn't immediately report the PR as live when it went out on 14th September - sometimes it won't rescan a repo often enough after a PR to catch the eventual deployment. So far as I'm aware, nothing actually changed in PROD https://fronts.gutools.co.uk/v2 yesterday, except that Prout finally did a follow-up scan and realised that the changes were present. Prout's fresh scan yesterday was triggered by our GitHub guardian organisation webhook for Prout, which asks Prout to rescan repos when PRs are merged or re-labelled - and as it happens, I added a
I can't explain that, I think it's probably a coincidence? |
this explains it @rtyley - thanks for the detailed explanation
yes definitely a coincidence now you've explained the Europe Edition labelling (story packages CP email thread was loosely related anyway) |
Good question @davidfurey, yep, there is! I'm currently looking into this... here's some background, but in summary, you need all 3 of these things:
With all this in place, sbt will correctly fail the build with an error when, say version 1.1.0 of a library is evicted in preference of version 1.2.0. It's not happening at the moment because we don't have the There's a ScalaCenter sbt plugin called If you'd like to have a chat about this, let me know, would love to talk about this! Doc with proposal. |
Thanks for the detailed explanation. Happy to talk about this too |
This is a small upgrade, catching up with the recent dependency updates of https://github.com/guardian/facia-scala-client/releases/tag/v4.0.6, before the more extensive update in guardian/facia-scala-client#287 is introduced.
This update has already been tested in Ophan's PromotionPoller with https://github.com/guardian/ophan/pull/5540, successfully deployed to Prodution.