Fork me on GitHub
#babashka-sci-dev
<
2022-06-07
>
borkdude18:06:45

@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 ;)

borkdude18:06:03

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

borkdude18:06:27

So probably choosing a different approach would be better

borkdude18:06:02

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

borkdude19:06:56

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 :)

lispyclouds20:06:16

I guess they disabled the circle command 😕

lispyclouds20:06:33

We could try calling the api, might work

lispyclouds20:06:51

Cirrus looks nice!

borkdude20:06:11

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

borkdude20:06:26

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

borkdude20:06:27

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

borkdude20:06:29

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

lispyclouds20:06:31

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

lispyclouds20:06:11

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

borkdude20:06:15

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

lispyclouds20:06:04

Yeah you mean circle's inbuilt dynamic configuration right?

lispyclouds20:06:34

Yeah wanted to try that out, should be good fit

lispyclouds20:06:55

Will test if it actually does something useful this time 😅

lispyclouds20:06:11

I guess this does the dynamic config for us?

lispyclouds20:06:26

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

lispyclouds20:06:19

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

lispyclouds20:06:07

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

borkdude21:06:52

Woohoo @rahul080327 !

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

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

1
lispyclouds21:06:57

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)21:06:21

could have a look next week!

borkdude21:06:21

sounds good :)