Skip to content

Conversation

@ermshiperete
Copy link
Contributor

@ermshiperete ermshiperete commented Dec 19, 2025

This fixes a problem where TC shows an error because it can't find the end of the service message for a failed test. Single quotes have to be escaped with |' inside of a message, as well as some other characters.

Build-bot: skip:all build:web
Test-bot: skip

@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Dec 19, 2025

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

  • Web
    • KeymanWeb Test Home - build : all tests passed (no artifacts on BuildLevel "build")

@keymanapp-test-bot keymanapp-test-bot bot changed the title maint(web): escape single quotes in TC service messages maint(web): escape single quotes in TC service messages 🎼 Dec 19, 2025
@keymanapp-test-bot keymanapp-test-bot bot added this to the A19S18 milestone Dec 19, 2025
@github-actions github-actions bot added common/ maint Maintenance work -- continuous integration, build scripts, infrastructure web/ labels Dec 19, 2025
@ermshiperete ermshiperete marked this pull request as draft December 19, 2025 09:10
@ermshiperete ermshiperete force-pushed the maint/web/playwright-tc branch from 0101508 to e0b582a Compare December 19, 2025 09:45
@github-actions github-actions bot added web/ and removed web/ labels Dec 19, 2025
@ermshiperete ermshiperete marked this pull request as ready for review December 19, 2025 09:47
This fixes a problem where TC shows an error because it can't find the
end of the service message for a failed test. Single quotes (and some
other characters) have to be escaped with `|'` inside of a message.

Build-bot: skip:all build:web
Test-bot: skip
@ermshiperete ermshiperete force-pushed the maint/web/playwright-tc branch from e0b582a to 0dbbcc4 Compare December 19, 2025 18:53
@github-actions github-actions bot added web/ and removed web/ labels Dec 19, 2025
Copy link
Contributor

@rc-swag rc-swag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Does getTestResult only get sent to TC. The reason I ask is we aren't sending the error to stdout on bash or something which would expect standard escape '' characters?

Copy link
Member

@mcdurdin mcdurdin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we have other reporters that need this escaping too?

@ermshiperete
Copy link
Contributor Author

I wonder if we have other reporters that need this escaping too?

Most reporters already do that. #15384 adds some missing values to test-runner-TC-reporter.mjs.

@ermshiperete ermshiperete merged commit 72637a9 into epic/web-core Dec 22, 2025
7 of 8 checks passed
@ermshiperete ermshiperete deleted the maint/web/playwright-tc branch December 22, 2025 13:51
@github-project-automation github-project-automation bot moved this from Todo to Done in Keyman Dec 22, 2025
ermshiperete added a commit that referenced this pull request Jan 6, 2026
chore(web): escape some additional values in TC service messages

See: jetbrains.com/help/teamcity/service-messages.html#Escaped+Values.
Follow-up-of: #15374
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common/ epic-web-core maint Maintenance work -- continuous integration, build scripts, infrastructure web/

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants