Skip to content

Conversation

@0xZaddyy
Copy link
Contributor

@0xZaddyy 0xZaddyy commented Jul 12, 2025

Problem

The Link CLN step in the cln-plugin job 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

  • Moved the - name: Link CLN step to the correct top-level indentation within the steps list.
  • Verified YAML structure is valid.

@mariocynicys
Copy link
Collaborator

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 🤞).
Thanks so much for spotting this. If you want, you can tackle the failing CI within this PR too.

@0xZaddyy 0xZaddyy force-pushed the fix/yaml-indent-cln-plugin branch 2 times, most recently from df98b9e to 18923f6 Compare July 13, 2025 17:15
@mariocynicys
Copy link
Collaborator

@0xZaddyy would be better if you leave rebasing to the end.
as rebasing removes the rebased commit and makes it harder to access the CI run history.
for now let's just append commits on top and rebase at the end before merging the PR.

@0xZaddyy
Copy link
Contributor Author

@mariocynicys can you check this out now?

Copy link
Collaborator

@mariocynicys mariocynicys left a 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 :)

run: |
source $HOME/.cargo/env
cd lightning && sudo make install
- name: Install Poetry
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

run: |
source $HOME/.cargo/env
if [ ! -d lightning ]; then
echo "CLN cache miss — cloning and building lightning"
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

Copy link
Collaborator

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

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.

fi
echo "Installing CLN to system..."
cd lightning
sudo env "PATH=$PATH" make install
Copy link
Collaborator

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"

Copy link
Collaborator

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

Copy link
Contributor Author

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 0xZaddyy requested a review from mariocynicys July 16, 2025 05:38
@mariocynicys
Copy link
Collaborator

@0xZaddyy i think there is some trimming that could be done here. will check this late next week.

@0xZaddyy
Copy link
Contributor Author

Alright, thank you!

@mariocynicys
Copy link
Collaborator

hey @0xZaddyy
i added some commits trying to trim down the workflow steps. could you please review them.
till now, the tests aren't passing (locally) due a timeout in starting lightning node. will be looking what the issue is.

@0xZaddyy
Copy link
Contributor Author

0xZaddyy commented Aug 8, 2025

hey @0xZaddyy i added some commits trying to trim down the workflow steps. could you please review them. till now, the tests aren't passing (locally) due a timeout in starting lightning node. will be looking what the issue is.

I’ll be digging into that now!

@mariocynicys
Copy link
Collaborator

till now, the tests aren't passing (locally) due a timeout in starting lightning node. will be looking what the issue is.

@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.

@mariocynicys
Copy link
Collaborator

okie. i think this is looking good now.
@0xZaddyy could you please give it a review. i have written explanations in the commit messages.
but you should squash all of these into one commit before merging to not get much clutter into the master branch commit history.

@mariocynicys
Copy link
Collaborator

hey @0xZaddyy,
could you please squash these commits into one and sign it.

@0xZaddyy 0xZaddyy force-pushed the fix/yaml-indent-cln-plugin branch from 63f0df0 to b6e1e20 Compare September 8, 2025 20:17
@0xZaddyy
Copy link
Contributor Author

0xZaddyy commented Sep 8, 2025

Hi @mariocynicys, apologies for the delay! I've squashed the commits as requested.

@mariocynicys
Copy link
Collaborator

Thanks @0xZaddyy

could you also sign the commit and write a brief description instead of git's aggregate commit description.
let me know if you need help writing the description.

@0xZaddyy 0xZaddyy force-pushed the fix/yaml-indent-cln-plugin branch from b6e1e20 to 6298b20 Compare September 11, 2025 11:18
@0xZaddyy
Copy link
Contributor Author

Hi @mariocynicys i hope i've done it the right way

@mariocynicys
Copy link
Collaborator

Thanks for signing it.
One last thing missing:

and write a brief description instead of git's aggregate commit description.

image

this commit will make it to master and the commit description should makes sense so that people who use git-blame could make sense of what this commit did and the context behind it.

- 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
@0xZaddyy 0xZaddyy force-pushed the fix/yaml-indent-cln-plugin branch from 6298b20 to 469e247 Compare September 12, 2025 10:06
@0xZaddyy
Copy link
Contributor Author

@mariocynicys does it look better now?

Copy link
Collaborator

@mariocynicys mariocynicys left a 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!

@mariocynicys mariocynicys merged commit 316b0c1 into talaia-labs:master Sep 12, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants