https://pantsbuild.org/ logo
p

proud-dentist-22844

09/11/2022, 4:20 PM
I'm working on some pants GHA stuff. The action in this PR handles restoring the pants cache files from the GHA cache. Would anyone else be interested in an action like this? Maybe it could be extended to (a) switch between GHA file cache and remote cache, and (b) make using
pants.ci.toml
optional or configurable. https://github.com/StackStorm/st2/pull/5727
b

bitter-ability-32190

09/11/2022, 4:45 PM
Publishing a GHA that others can use would be absolutely amazing. It's not hard to make them configurable either
p

proud-dentist-22844

09/11/2022, 5:09 PM
What if we published it under the pantsbuild org and then used it in the example-python repo?
b

bitter-ability-32190

09/11/2022, 5:09 PM
I'm all for it
c

curved-television-6568

09/11/2022, 6:08 PM
+1
p

proud-dentist-22844

09/11/2022, 6:16 PM
Needs a readme. And then maybe we can transfer it to the pantsbuild org
Could someone approve running CI for me? https://github.com/pantsbuild/example-python/pull/106
e

enough-analyst-54434

09/11/2022, 8:20 PM
Done.
👍 1
p

proud-dentist-22844

09/12/2022, 12:20 AM
Ok I wrapped up the action, and made some changes based on the workflow in the example-python workflow. You can see how to use the action on this PR. https://github.com/pantsbuild/example-python/pull/106 I ended up testing in my fork, so you can see a successful run with this action here: https://github.com/cognifloyd/example-python/runs/8296177323?check_suite_focus=true#step:3:1 Check out both steps: • Run st2sandbox/init-pants-action@main • Post Run st2sandbox/init-pants-action@main
So what's the next step to get this repo transferred to the pantsbuild org?
e

enough-analyst-54434

09/12/2022, 12:37 AM
We already have an actions repo so how about just propose a PR there.
p

proud-dentist-22844

09/12/2022, 12:38 AM
Oh sweet. I didn't see that
Looking...
h

hundreds-father-404

09/12/2022, 7:24 PM
cc @ancient-vegetable-10556, how does this intersect with your work on an init script?
a

ancient-vegetable-10556

09/12/2022, 7:25 PM
I’m not sure it does, but I’d need to spend some real time looking at it to be sure
not worth waiting on me
p

proud-dentist-22844

09/14/2022, 3:15 AM
🥳 @happy-kitchen-89482 merged my new pants-init action in https://github.com/pantsbuild/actions/pull/3 Thanks! RFR https://github.com/pantsbuild/example-python/pull/106 This makes the example use the new action.
🎉 2