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

Avoid failing the CI pipelines on "special" commit messages #10956

Merged
merged 1 commit into from
Dec 14, 2024

Conversation

scholzj
Copy link
Member

@scholzj scholzj commented Dec 13, 2024

Type of change

  • Bugfix

Description

Some commit messages with some special characters and structure might break the script that logs the variable values in out CI pipelines. (Unfortunately, one such message is generated when reverting GitHub PRs 🙄). An example of such message is the one used in this PR:

Try to debug unusual commit messages such as with "quotes (#1874) like" this in the message

Where the combination of ( inside " causes the error:

/home/vsts/work/_temp/a34b75bc-d39f-4087-98d3-a314284dde8c.sh: line 3: syntax error near unexpected token `('
/home/vsts/work/_temp/a34b75bc-d39f-4087-98d3-a314284dde8c.sh: line 3: `echo "COMMIT_MESSAGE: Try to debug unusual commit messages such as with "quotes (#1874) like" this in the message"'

I did not found any way to automatically escape this in the Azure pipelines. So to avoid this, I marked the step that logs the variables to continue even on error. As it is logging step only, it should be fine and it will not block us in the future as it did with the 0.45.0-rc2.

@scholzj scholzj added this to the 0.46.0 milestone Dec 13, 2024
@scholzj
Copy link
Member Author

scholzj commented Dec 13, 2024

/azp run acceptance

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@scholzj scholzj merged commit bb3a646 into main Dec 14, 2024
15 checks passed
@scholzj scholzj deleted the debug-weird-commit-messages branch December 14, 2024 14:39
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.

3 participants