-
Notifications
You must be signed in to change notification settings - Fork 66
fix: correct YAML indentation in cln-plugin job step #272
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
fix: correct YAML indentation in cln-plugin job step #272
Conversation
|
Wow! I completely missed that while reviewing #268 At this point I am not really sure whether tests passed in that PR or not (I think they passed but this change was done in a rebase later so they were cancelled, I hope 🤞). |
df98b9e to
18923f6
Compare
|
@0xZaddyy would be better if you leave rebasing to the end. |
|
@mariocynicys can you check this out now? |
mariocynicys
left a comment
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.
happy to see the CI green again :)
.github/workflows/cln-plugin.yaml
Outdated
| run: | | ||
| source $HOME/.cargo/env | ||
| cd lightning && sudo make install | ||
| - name: Install Poetry |
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.
we already install poetry in the steps below. is it really needed at this step? we can then remove the step installing it below.
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.
i couldn't access the previously installed poetry until i install it again, seems that is due to GitHub Actions steps not sharing the same shell state like a typical script.
.github/workflows/cln-plugin.yaml
Outdated
| run: | | ||
| source $HOME/.cargo/env | ||
| if [ ! -d lightning ]; then | ||
| echo "CLN cache miss — cloning and building lightning" |
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.
there shouldn't be a cache miss as this job depends on the cache job.
if the cache job hits a cache miss, it already re-prepares the cache.
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.
Job was failing because lightning wasn't really found so i had to find a logic to handle miss if it happens since i can't join both Load CLN cache & Link CLN together.
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.
they are already causally joined together, see
| needs: cache-cln |
also, checking the succeeding run, the echo line above didn't fire. so we can remove this whole block of code inside the if condition.
.github/workflows/cln-plugin.yaml
Outdated
| fi | ||
| echo "Installing CLN to system..." | ||
| cd lightning | ||
| sudo env "PATH=$PATH" make install |
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.
i think we can omit "PATH"=$"PATH"
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.
or document why it's needed otherwise
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.
we need "PATH"=$"PATH" because sudo resets the environment, including $PATH, which removes access to ~/.cargo/bin/ & ~/.local/bin/ and sudo is needed for permission.
|
@0xZaddyy i think there is some trimming that could be done here. will check this late next week. |
|
Alright, thank you! |
|
hey @0xZaddyy |
I’ll be digging into that now! |
@0xZaddyy no need to dig. looks like this problem is from the local action runner i am using (https://github.com/nektos/act). it seems it doesn't share a lot of aspects with githubs CI and the two environments are vastly different. |
|
okie. i think this is looking good now. |
|
hey @0xZaddyy, |
63f0df0 to
b6e1e20
Compare
|
Hi @mariocynicys, apologies for the delay! I've squashed the commits as requested. |
|
Thanks @0xZaddyy could you also sign the commit and write a brief description instead of git's aggregate commit description. |
b6e1e20 to
6298b20
Compare
|
Hi @mariocynicys i hope i've done it the right way |
- Correct YAML indentation - Fix Poetry installation (no --user, avoids not found errors) - Remove unnecessary steps and sudo usage - Modularize CLN cache jobs - Run `poetry run make` concurrently to speed up build
6298b20 to
469e247
Compare
|
@mariocynicys does it look better now? |
mariocynicys
left a comment
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.
Thanks for the fix.
LGTM!

Problem
The
Link CLNstep in thecln-pluginjob was incorrectly indented. This resulted in an invalid workflow structure and potentially caused the job to fail or silently skip the CLN linking step.Fix
- name: Link CLNstep to the correct top-level indentation within thestepslist.