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

Emoji not rendered #628

Closed
sebastien-savalle opened this issue Sep 30, 2024 · 22 comments · Fixed by #631
Closed

Emoji not rendered #628

sebastien-savalle opened this issue Sep 30, 2024 · 22 comments · Fixed by #631
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@sebastien-savalle
Copy link

sebastien-savalle commented Sep 30, 2024

We recently noticed a strange behavior with emoji included in the report. They are no longer rendered, except the duration

One example:
image

Could you have a look ?
Thanks a lot,
Sebastien

@EnricoMi
Copy link
Owner

Is that on an enterprise github (non-public)? Do checks not render or job summaries or pull request comments?

@sebastien-savalle
Copy link
Author

You're right, we run an enterprise github but it worked before.
The issue is present everywhere: in checks, job summaries and pr comments

@EnricoMi
Copy link
Owner

EnricoMi commented Oct 9, 2024

I presume that is an enterprise github setup issue because the markdown is rendered by Github UI. I presume a config change has happened.

@sebastien-savalle
Copy link
Author

Yes probably and this is really strange because the duration 🕐 emoticon is still rendered. But this is the only one.
For others, like ✅ , they are properly working everywhere except when the markdown is generated by your action.

Example with another action (dorny/test-reporter) in the same repository:
image

@EnricoMi
Copy link
Owner

EnricoMi commented Oct 9, 2024

I presume ✅ is a unicode character in that markdown and not a ✅ (:white_check_mark:)?

Please try the following: copy the following lines into a message in your enterprise github:

✅ is a unicode character
:white_check_mark: needs to be rendered

@EnricoMi
Copy link
Owner

EnricoMi commented Oct 9, 2024

@EnricoMi
Copy link
Owner

EnricoMi commented Oct 9, 2024

I could not find any announcement by Github that those named emoji might be deprecated, only this bug report that got resolved: https://github.com/orgs/community/discussions/77606

@EnricoMi
Copy link
Owner

EnricoMi commented Oct 9, 2024

Anyway, might be safer to use unicode emojis rather than named emojis.

@EnricoMi EnricoMi added enhancement New feature or request good first issue Good for newcomers labels Oct 9, 2024
@EnricoMi
Copy link
Owner

EnricoMi commented Oct 9, 2024

Interesting is that the named stopwatch emoji ⏱️ is working for you...

@sebastien-savalle
Copy link
Author

I presume ✅ is a unicode character in that markdown and not a ✅ (:white_check_mark:)?

Please try the following: copy the following lines into a message in your enterprise github:

✅ is a unicode character
:white_check_mark: needs to be rendered

image

And we use it (:white_check_mark:) regularly in pull request without issues

@sebastien-savalle
Copy link
Author

@EnricoMi
Copy link
Owner

EnricoMi commented Oct 9, 2024

Can you edit a pull request comment of this action and copy-paste the markdown here?

@sebastien-savalle
Copy link
Author

sebastien-savalle commented Oct 10, 2024

Sure

publish-unit-test-result-action:

## Backend Tests Result
   15 files    864 suites   31m 13s :stopwatch:
3 734 tests 3 730 :white_check_mark: 4 :zzz: 0 :x:
3 768 runs  3 764 :white_check_mark: 4 :zzz: 0 :x:

Results for commit 5a770bff.

[test-results]:data:application/gzip;base64,H4sIANOBB2cC/02PQQ6DIBBFr2JYdzEgMtrLNIiQkKo0CCvTu3dEG1y+9ycvsDPnZ7uxZ8O7R8O27FOhXknCKUedfFiPuceWDK3p2Fts5R9fWzbmdFDd23/I1SOn/UyiXtgYQ7xMzOtZVf1FNVpecqraLHxLFr4XTVgWnwhYpxFhdA4QpBhRm0kAiEEqBZo+Zbg1E8eBs+8PC0H2RA0BAAA=

:recycle: This comment has been updated with latest results.

Rendered as:
image

@EnricoMi
Copy link
Owner

Can you edit the pull request comment once more and add

✅ is a unicode character
:white_check_mark: needs to be rendered

from above to it and see if that renders as before?

@EnricoMi
Copy link
Owner

Can you try running the action from this branch to test a fix?

uses: EnricoMi/publish-unit-test-result-action/composite@unicode-emojis

That branch uses unicode emojis rather than markdown.

@sebastien-savalle
Copy link
Author

sebastien-savalle commented Oct 21, 2024

This is clearly better :)

I used
uses: EnricoMi/publish-unit-test-result-action@unicode-emojis
not
uses: EnricoMi/publish-unit-test-result-action/composite@unicode-emojis

image

@EnricoMi
Copy link
Owner

With uses: EnricoMi/publish-unit-test-result-action@unicode-emojis you effectively run the release version, not the changes of the unicode-emojis branch. If you edit the comment, you should see it contains markdown emojis. Interesting that this works again.

@sebastien-savalle
Copy link
Author

I can confirm this is markdown, sometimes it works, sometimes not. Really weird.

@EnricoMi
Copy link
Owner

That is why I would like you to test this branch to see if this works around this bug. In the end Github has to fix it but I'd prefer the unicode emojis if they make things more robust.

@sebastien-savalle
Copy link
Author

Yes I understood but I can't use the composite action which is not approved by my github enterprise.

@EnricoMi
Copy link
Owner

Alright, I think this is safe to be released.

@EnricoMi
Copy link
Owner

Fix has been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants