You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Occasionally, the list-target job detects targets with extra whitespace at the end. Upon investigating, I discovered that in the follow-up PR body, \n is sometimes treated as \r\n.
The reason for this behavior is unclear.
When the newline character is \r\n, extra whitespace remains even after --> is removed from the end of the first line in the PR body.
How to reproduce
tfaction-root.yaml
plan_workflow_name: testscaffold_working_directory:
skip_adding_aqua_packages: truetarget_groups:
- working_directory: onetarget: one
Run suzuki-shunsuke/tfaction/list-targets-with-changed-files@v1.3.2
targets: [{"target":"one","runs_on":"ubuntu-latest","job_type":"terraform"},{"target":"one ","runs_on":"ubuntu-latest","job_type":"terraform"}]
PR comment
<!-- tfaction follow up pr target=one -->
@cappyzawa
Expected behaviour
The list-target job should not detect any targets with extra whitespace at the end.
Actual behaviour
Sometimes the list-target job inadvertently detects targets with extra whitespace at their end.
I created #1660 as one of the solutions to the problem.
cappyzawa
changed the title
Sometimes list-target job detects a target that contains extra trailing spaces.
Extra whitespace detected at the end of targets in list-target job
May 3, 2024
tfaction version
v1.3.2
Overview
Occasionally, the list-target job detects targets with extra whitespace at the end. Upon investigating, I discovered that in the follow-up PR body,
\n
is sometimes treated as\r\n
.The reason for this behavior is unclear.
When the newline character is
\r\n
, extra whitespace remains even after-->
is removed from the end of the first line in the PR body.How to reproduce
tfaction-root.yaml
tfaction.yaml
{}
GitHub Actions Workflow
Other related code such as local Registry
GitHub Actions' log
PR comment
Expected behaviour
The list-target job should not detect any targets with extra whitespace at the end.
Actual behaviour
Sometimes the list-target job inadvertently detects targets with extra whitespace at their end.
Important Factoids
No response
Note
The job that confirmed that
\r\n
is included as a newline code is https://github.com/cappyzawa/tfaction-debug/actions/runs/8934424916/job/24541344967.The text was updated successfully, but these errors were encountered: