babashka-sci-dev

cap10morgan 2021-12-10T19:23:39.085400Z

@rahul080327 @borkdude let me know if my comments on the PR don't make sense. I've had to learn a lot about multi-platform docker builds lately and it is a lot 🙂

lispyclouds 2021-12-10T19:26:06.086600Z

Its looking really nice @cap10morgan I'm learning about it too! knew a bit about manifest but mostly hid behind the buildx 😅 awesome stuff!

borkdude 2021-12-10T19:26:45.087100Z

I'm just glad you guys are figuring this stuff out :-D

cap10morgan 2021-12-10T19:50:51.087700Z

🙂 yeah I hadn't done much w/ manifest before either. I'm ripping it out of my PR now though haha

cap10morgan 2021-12-10T21:31:31.088Z

here goes nothin...

cap10morgan 2021-12-10T21:36:34.088500Z

oh except it won't do anything interesting b/c of the branch filters. I'll let if run on this branch too for now.

cap10morgan 2021-12-10T21:38:49.088700Z

there we go

cap10morgan 2021-12-10T21:57:02.089300Z

Oh but it's still a snapshot so no joy

borkdude 2021-12-10T22:10:40.089600Z

should I move the version back to 0.7.0 - does that help?

cap10morgan 2021-12-10T22:31:16.090700Z

yeah that would let it trigger, but I think I need to do it on my branch. so probably easier if I just do it. BUT I'm nervous about letting it clobber those images on Docker Hub...

borkdude 2021-12-10T22:32:12.091400Z

the docker token isn't exposed to pull requests anyway :)

cap10morgan 2021-12-10T22:32:19.091700Z

ok good! 🙂

cap10morgan 2021-12-10T22:32:25.091900Z

alright giving that a shot

cap10morgan 2021-12-10T22:46:16.092600Z

hmm, got a test failure that seems unrelated / intermittent, but I don't have perms to re-run. I guess I can push another dummy commit though if you don't mind the clutter 🙂

cap10morgan 2021-12-10T22:46:37.092800Z

pushed

borkdude 2021-12-10T22:47:31.093300Z

oh yes, those hato tests use httpbin and that's a flaky service

👍 1
cap10morgan 2021-12-10T22:59:47.094900Z

hahaha, oh boy. the check in the .circleci/script/docker script is if [ -z "$CIRCLE_PULL_REQUEST" ] && [ "$CIRCLE_BRANCH" = "master" ] so it still didn't run

cap10morgan 2021-12-10T23:01:15.096Z

given that .circleci/config.yml already has branch filters and docker hub tokens aren't shared with pull requests, what do you think about just removing that?

cap10morgan 2021-12-10T23:02:53.096500Z

I'm going to do it in this PR to test, but let me know if you'd like me to put it back before merging

borkdude 2021-12-10T23:03:51.097Z

why would we remove them? I don't want to push images in non-master branches?

borkdude 2021-12-10T23:04:12.097300Z

the tokens aren't shared with PRs from outside the organization

borkdude 2021-12-10T23:04:49.097900Z

Please make the PR as minimal as possible, not introducing any unnecessary changes

borkdude 2021-12-10T23:05:07.098300Z

That's a good practice in general

cap10morgan 2021-12-10T23:05:36.098700Z

yes, I agree of course. but I don't want to merge something that's untested!

cap10morgan 2021-12-10T23:05:43.099Z

these things are guarded against in other ways

cap10morgan 2021-12-10T23:05:52.099400Z

but like I said, I'm happy to put it back before merging

borkdude 2021-12-10T23:06:35.100100Z

yeah, I got it. for testing it's ok.

cap10morgan 2021-12-10T23:06:37.100300Z

for example, the docker job won't even run in non-master branches due to the circleci config

cap10morgan 2021-12-10T23:06:56.100600Z

hence why I had to whitelist my branch

borkdude 2021-12-10T23:07:03.100800Z

maybe make a note in the PR as a TODO that we add it back before merging

cap10morgan 2021-12-10T23:07:12.101100Z

sure thing

cap10morgan 2021-12-10T23:09:19.101800Z

luckily the version change made it non-mergeable so you can't even do it accidentally now 😅

cap10morgan 2021-12-10T23:10:47.102Z

woof, more unrelated test failures

borkdude 2021-12-10T23:12:27.102400Z

perhaps uncomment the tests for now - saves on circleci credits

borkdude 2021-12-10T23:12:39.102700Z

I mean comment

borkdude 2021-12-10T23:13:04.103300Z

also comment out the jvm stuff, etc, everything you don't need to for testing and to get faster feedback

borkdude 2021-12-10T23:13:30.103600Z

I'll check back tomorrow. Thanks for looking into it!

👍 1
cap10morgan 2021-12-10T23:15:56.104200Z

sounds good I'll do all that if I get another failure

borkdude 2021-12-10T23:16:55.105Z

I was thinking we could have a skip-testsfilter to skip tests in branches if you're not interested in those

borkdude 2021-12-10T23:17:10.105200Z

for intermediate commits

borkdude 2021-12-10T23:17:17.105400Z

since they can take quite long

cap10morgan 2021-12-10T23:17:53.105700Z

that's a good idea

cap10morgan 2021-12-10T23:24:07.106700Z

haha and this time it got as far as not having docker hub creds which is pretty early in the process. I should probably go back to having it push to my docker hub account and add that to the pre-merge checklist

cap10morgan 2021-12-10T23:24:16.107Z

think I'm wrapping up for the day too, though