8000 [PM-17194] Split test.yml job by vvolkgang · Pull Request #1277 · bitwarden/ios · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[PM-17194] Split test.yml job #1277

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

Merged
merged 8 commits into from
Jan 17, 2025
Merged

[PM-17194] Split test.yml job #1277

merged 8 commits into from
Jan 17, 2025

Conversation

vvolkgang
Copy link
Member
@vvolkgang vvolkgang commented Jan 16, 2025

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-17194

📔 Objective

  1. Splits test.yml in test and report jobs to reduce the permissions available during the build process.
  2. Adds a comment to the PR when code coverage report upload fails. Example
  3. While at it, fixes the codecov plugin input by removing it. In V5 it would need to be plugins but, given that we're taking care of building first we don't seem to need that plugin.

Important

About 3., while testing the initial changes I noticed that when the codecov action fails, it's a silent error by design and won't fail the workflow job. This is the case if the coverage report can't be found for instance. Discussing it with @SaintPatrck we agreed that uploading code coverage reports shouldn't block a PR so it should continue to not fail workflow jobs, but we needed to raise visibility of errors when that happens. The quickest win was adding a comment to the PR tagging the user that triggered the action run.

📸 Screenshots

image

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@vvolkgang vvolkgang requested a review from a team as a code owner January 16, 2025 22:03
@vvolkgang vvolkgang changed the title [PM-17194] Split test.yml job [PM-17194] Split test.yml job Jan 16, 2025
Copy link
Contributor

Logo
Checkmarx One – Scan Summary & Details84c85ced-8d73-4abd-af72-bdf14cf4db88

Great job, no security vulnerabilities found in this Pull Request

@vvolkgang vvolkgang enabled auto-merge (squash) January 16, 2025 22:18
Copy link
codecov bot commented Jan 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.41%. Comparing base (0585d04) to head (ae7f71d).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1277   +/-   ##
=======================================
  Coverage   89.41%   89.41%           
=======================================
  Files         733      733           
  Lines       46256    46256           
=======================================
  Hits        41361    41361           
  Misses       4895     4895           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vvolkgang vvolkgang merged commit 832c5f4 into main Jan 17, 2025
9 checks passed
7023
@vvolkgang vvolkgang deleted the split-test branch January 17, 2025 14:51
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.

2 participants
0