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

fix(ci): fix mangled logs using xcbeautify #4650

Merged
merged 6 commits into from
Dec 19, 2024

Conversation

philprime
Copy link
Contributor

@philprime philprime commented Dec 19, 2024

📜 Description

Changes the scripts using xcbeautifyto display a test result summary at the end.

💡 Motivation and Context

The scripts using xcbeautify do not set the NSUnbufferedIO correctly for parallel and concurrent testing as stated in the documentation.

Also removes the custom exit "${PIPESTATUS[0]}" as I believe that should not be necessary to set if set -o pipefail is used → reference

💚 How did you test it?

Ran the scripts locally and on CI.

You have to check all boxes before merging:

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

#skip-changelog

Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.628%. Comparing base (0b53d9c) to head (e6a2d81).
Report is 5 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##              main     #4650       +/-   ##
=============================================
- Coverage   90.628%   90.628%   -0.001%     
=============================================
  Files          620       620               
  Lines        71078     71075        -3     
  Branches     25913     25905        -8     
=============================================
- Hits         64417     64414        -3     
  Misses        6564      6564               
  Partials        97        97               

see 6 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0b53d9c...e6a2d81. Read the comment docs.

Copy link

github-actions bot commented Dec 19, 2024

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1228.31 ms 1252.46 ms 24.15 ms
Size 22.31 KiB 760.24 KiB 737.93 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
cd72e5c 1238.96 ms 1256.84 ms 17.88 ms
9d61bea 1243.88 ms 1254.36 ms 10.48 ms
2af280d 1246.22 ms 1253.10 ms 6.88 ms
b6ba04e 1230.48 ms 1253.20 ms 22.72 ms
ddc9b9a 1201.71 ms 1226.70 ms 24.99 ms
6e1452d 1241.69 ms 1253.47 ms 11.78 ms
cd76c54 1223.41 ms 1249.65 ms 26.24 ms
aa45f36 1217.59 ms 1236.86 ms 19.27 ms
a34f08c 1234.08 ms 1246.40 ms 12.31 ms
e5dcbd5 1223.47 ms 1243.90 ms 20.43 ms

App size

Revision Plain With Sentry Diff
cd72e5c 22.85 KiB 414.74 KiB 391.89 KiB
9d61bea 20.76 KiB 436.29 KiB 415.53 KiB
2af280d 20.76 KiB 435.22 KiB 414.46 KiB
b6ba04e 20.76 KiB 414.44 KiB 393.68 KiB
ddc9b9a 20.76 KiB 420.40 KiB 399.65 KiB
6e1452d 21.58 KiB 419.68 KiB 398.10 KiB
cd76c54 21.58 KiB 675.85 KiB 654.27 KiB
aa45f36 21.58 KiB 616.73 KiB 595.15 KiB
a34f08c 22.30 KiB 730.30 KiB 708.00 KiB
e5dcbd5 22.85 KiB 414.09 KiB 391.24 KiB

Previous results on branch: philprime/xcbeautify-parallel-logging-fix

Startup times

Revision Plain With Sentry Diff
fd4b8c2 1216.38 ms 1232.62 ms 16.24 ms

App size

Revision Plain With Sentry Diff
fd4b8c2 22.31 KiB 760.27 KiB 737.96 KiB

Copy link
Member

@philipphofmann philipphofmann left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM.

@philprime philprime merged commit c810e58 into main Dec 19, 2024
50 checks passed
@philprime philprime deleted the philprime/xcbeautify-parallel-logging-fix branch December 19, 2024 15:32
qlcd pushed a commit to QLCDFork/sentry-cocoa that referenced this pull request Dec 20, 2024
@philprime
Copy link
Contributor Author

No clue why this PR created an empty commit on main, just wanted to add this note here.

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