Skip to content
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

Institution issue debug #59

Closed
wants to merge 3 commits into from

Conversation

znichollscr
Copy link

@znichollscr znichollscr commented Jul 15, 2024

Follows the discussion in #57 (specifically this comment #57 (comment)).

@wolfiex I couldn't do a full debug because the payload shown by GitHub doesn't seem to match what Python is seeing so I couldn't figure out what exactly Python had to handle/how to test this (although I could be missing something and I didn't want to try and do a full reproduction of GitHub workflows locally).

The changes here would help with debugging I suspect, without interfering with the successful path.

@znichollscr
Copy link
Author

Having looked again though, I don't think the issue is in the Python (my bad). I think it's the line echo "${{ toJson(github.event.client_payload) }}"

As far as I can tell, bash then tries to echo the string, but explodes because all the special characters (brackets, single quotes etc.) aren't escaped by toJSON, hence the error. This comment seems to point in that direction too: actions/runner#1656 (comment)

@znichollscr
Copy link
Author

Ok, what I think is a fix is now pushed.

@wolfiex
Copy link
Collaborator

wolfiex commented Sep 19, 2024

This is now handled in the scripts of the WCRP-CMIP/CMIP-LD library. These have been rewritten from scratch so hoping that this was fixed.

Closing for now, but if it still persists, I will reopen it as part of that repository.

@wolfiex wolfiex closed this Sep 19, 2024
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