babashka-sci-dev

borkdude 2022-06-07T18:35:45.619649Z

@rahul080327 @brzoskwinka18 It seems the short thing isn't working. When I change the regex to .* it prints:

Irrelevant changes - skipping CI run.
But all the builds just continues ;)

borkdude 2022-06-07T18:44:03.461289Z

It seems cancelling a workflow isn't possible at all programmatically

borkdude 2022-06-07T18:44:27.359729Z

So probably choosing a different approach would be better

borkdude 2022-06-07T18:45:02.315069Z

I'll just manually edit the config for now, while I'm configuring another CI

borkdude 2022-06-07T19:05:56.251679Z

I'm configuring bb compilation on CI with M1 support:

Produced artifacts:
/private/var/folders/2f/dq81klt17l3g6yg3_nf0t2gh0000gn/T/cirrus-ci-build/bb ( Finished generating 'bb' in 1m 38s.
Wow, that's pretty fast :)

lispyclouds 2022-06-07T20:14:16.654259Z

I guess they disabled the circle command 😕

lispyclouds 2022-06-07T20:14:33.704899Z

We could try calling the api, might work

lispyclouds 2022-06-07T20:14:51.704829Z

Cirrus looks nice!

borkdude 2022-06-07T20:17:11.429719Z

Neh, I think it's documented that you can halt a step but not a workflow

borkdude 2022-06-07T20:17:26.412199Z

So we would have to add the script at the start of each job I think

borkdude 2022-06-07T20:19:27.204909Z

But it's nice that we now have M1 CI with 8GB of memory :-D

borkdude 2022-06-07T20:21:29.040919Z

Btw, when I tested this I could not even halt the step itself, even if I tried - have you tested the short PR yourself?

lispyclouds 2022-06-07T20:22:31.517849Z

Well the thing was being called was tested, guess it has no effect

lispyclouds 2022-06-07T20:24:11.536239Z

Have the rest of the steps with a condition on this param

borkdude 2022-06-07T20:26:15.244979Z

We can use a whole dynamic config and generate a no-op

lispyclouds 2022-06-07T20:28:04.899609Z

Yeah you mean circle's inbuilt dynamic configuration right?

borkdude 2022-06-07T20:28:10.021009Z

yes

lispyclouds 2022-06-07T20:28:34.348149Z

Yeah wanted to try that out, should be good fit

lispyclouds 2022-06-07T20:28:55.765179Z

Will test if it actually does something useful this time 😅

lispyclouds 2022-06-07T20:31:24.417559Z

Also there seems to be this: https://circleci.com/developer/orbs/orb/circleci/path-filtering

lispyclouds 2022-06-07T20:33:11.231209Z

I guess this does the dynamic config for us?

lispyclouds 2022-06-07T20:34:26.323689Z

Heh it's using python in the similar way we have the bb script

lispyclouds 2022-06-07T20:36:19.122029Z

Is this worth a try or hand roll the dynamic config?

lispyclouds 2022-06-07T20:44:07.718479Z

quite interesting: https://github.com/CircleCI-Public/path-filtering-orb/blob/main/src/scripts/create-parameters.py#L39 really glad the logic @brzoskwinka18 used is pretty much the same here in the py script 😄 total coincidence

borkdude 2022-06-07T21:16:52.646819Z

Woohoo @rahul080327 !

bash <(curl ) --version 0.8.3-SNAPSHOT --dir /tmp

$ /tmp/bb -e '(System/getProperty "os.arch")'
"aarch64"

🤩 1
lispyclouds 2022-06-07T21:18:27.917659Z

yasss! bananadance

lispyclouds 2022-06-07T21:40:57.764789Z

will try to do a PR with the dynamic config hopefully in a day or two or beginning on next week if youre not faster 😅 cc @brzoskwinka18 if youre up for it too!

agata_anastazja (she/her) 2022-06-07T21:45:21.369399Z

could have a look next week!

borkdude 2022-06-07T21:47:21.764489Z

sounds good :)