Codeberg-CI/feedback
488
71

Indentation causes Woodpecker to end the execution #219

Closed
opened 2025年01月17日 22:11:35 +01:00 by mark22k · 5 comments
Member
Copy link

Hello,

I already reported about the strange behavior in the Matrix Channel. I build the OpenVPN man page with Codeberg CI and publish it in a Dash-compatible format. To do this, I create a JSON file during the process with Woodpecker, which contains information necessary for Dash format creation.

Scenario 1:
Indentation: I used indentation, which looks nice. The Ruby Psych parser could read the file without any problems.
mark22k/zeal-docs@92442a1aab/.woodpecker/openvpn.yaml
https://ci.codeberg.org/repos/13725/pipeline/175/3
However, Woodpecker simply stops in the middle of execution (successfully?). This is not how it should be.

Scenario 2:
I remove the nice indentation:
mark22k/zeal-docs@9530504d08
mark22k/zeal-docs@9530504d08/.woodpecker/openvpn.yaml
https://ci.codeberg.org/repos/13725/pipeline/176/3
Now Woodpecker executes the script to the end.

I think this is a bug (maybe in the YAML parser).

Hello, I already reported about the strange behavior in the [Matrix Channel](https://matrix.to/#/!LLCLqwCmFazlBXIXjT:obermui.de/$fbe1ggOloL4YLLuBnStUuVRZKKOQbiCPHMm49NcDZoY?via=freeyourgadget.org&via=matrix.org&via=tchncs.de). I build the OpenVPN man page with Codeberg CI and publish it in a Dash-compatible format. To do this, I create a JSON file during the process with Woodpecker, which contains information necessary for Dash format creation. Scenario 1: Indentation: I used indentation, which looks nice. The Ruby Psych parser could read the file without any problems. https://codeberg.org/mark22k/zeal-docs/src/commit/92442a1aabeb32dc50da0567384436cf7eb56ff1/.woodpecker/openvpn.yaml https://ci.codeberg.org/repos/13725/pipeline/175/3 However, Woodpecker simply stops in the middle of execution (successfully?). This is not how it should be. Scenario 2: I remove the nice indentation: https://codeberg.org/mark22k/zeal-docs/commit/9530504d08dd5ec34ee281e61d7ede46969ff68b https://codeberg.org/mark22k/zeal-docs/src/commit/9530504d08dd5ec34ee281e61d7ede46969ff68b/.woodpecker/openvpn.yaml https://ci.codeberg.org/repos/13725/pipeline/176/3 Now Woodpecker executes the script to the end. I think this is a bug (maybe in the YAML parser).
Member
Copy link

Does anything change if you remove trailing whitespaces on line 42?

Does anything change if you remove trailing whitespaces on line 42?
Author
Member
Copy link

That doesn't work at all: https://ci.codeberg.org/repos/13725/pipeline/177/errors It also works with scenario 2.

That doesn't work at all: https://ci.codeberg.org/repos/13725/pipeline/177/errors It also works with scenario 2.
Member
Copy link

mark22k/zeal-docs@844fe414b9/.woodpecker/openvpn.yaml (L42) EOF is not at the same indentation level as the rest of the string

https://codeberg.org/mark22k/zeal-docs/src/commit/844fe414b93259e0bd2a50a0b9edf7f7e600d8c3/.woodpecker/openvpn.yaml#L42 `EOF` is not at the same indentation level as the rest of the string
Member
Copy link

That is the trailing whitespaces:

image

EDIT: fixed screenshot

That is the trailing whitespaces: ![image](/attachments/0ad11bd5-3482-4685-8e32-5ac50b545966) https://codeberg.org/mark22k/zeal-docs/src/commit/92442a1aabeb32dc50da0567384436cf7eb56ff1/.woodpecker/openvpn.yaml#L42 EDIT: fixed screenshot
2.9 KiB
Owner
Copy link

Closing due to missing response. Thanks @yataro!

Closing due to missing response. Thanks @yataro!
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg-CI/feedback#219
Reference in a new issue
Codeberg-CI/feedback
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?