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

[CI] Comment SDK size on every commit #3339

Merged
merged 3 commits into from
Jul 29, 2024

Conversation

testableapple
Copy link
Contributor

@testableapple testableapple commented Jul 29, 2024

🔗 Issue Links

Resolve https://stream-io.atlassian.net/browse/PBE-4314

📺 Showcase

Screenshot 2024-07-29 at 1 22 06 PM

@testableapple testableapple added the 🤖 CI/CD Any work related to CI/CD label Jul 29, 2024
@testableapple testableapple requested a review from a team as a code owner July 29, 2024 11:09
@testableapple testableapple added the 🔧 WIP A PR that is Work in Progress label Jul 29, 2024
@testableapple testableapple marked this pull request as draft July 29, 2024 11:43
@testableapple testableapple marked this pull request as ready for review July 29, 2024 11:58
@testableapple testableapple marked this pull request as draft July 29, 2024 11:59
@Stream-SDK-Bot
Copy link
Collaborator

Stream-SDK-Bot commented Jul 29, 2024

SDK Size

title develop branch diff status
StreamChat 6.7MB 6.7MB 0.0MB 🟢
StreamChatUI 4.4MB 4.4MB 0.0MB 🟢

@testableapple testableapple force-pushed the ci/comment-sdk-size-on-every-commit branch from 74ee608 to 252f1b7 Compare July 29, 2024 12:22
@testableapple testableapple marked this pull request as ready for review July 29, 2024 12:22
@testableapple testableapple removed the 🔧 WIP A PR that is Work in Progress label Jul 29, 2024
name: Metrics
name: SDK Performance
Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's because on the Actions tab it was not possible to determine where was the Performance and where was the Size metrics.

Comment on lines -488 to -495
if sh('git status -s', log: false).to_s.empty?
pr_comment_required = false
UI.important('No changes in performance benchmarks. Skipping commit and comment.')
else
sh('git add -A')
sh("git commit -m 'Update #{xcmetrics_path}: #{current_branch}'")
sh('git push')
end
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is to eliminate the useless branch metrics in the baseline json file. Basically now performance metrics will keep only the benchmark, similar to size metrics.

Copy link
Member

@nuno-vieira nuno-vieira left a comment

Choose a reason for hiding this comment

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

Great! 👌

@testableapple testableapple enabled auto-merge (squash) July 29, 2024 14:11
@testableapple testableapple merged commit 69b3382 into develop Jul 29, 2024
14 checks passed
@testableapple testableapple deleted the ci/comment-sdk-size-on-every-commit branch July 29, 2024 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 CI/CD Any work related to CI/CD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants