Skip to content

Conversation

@vvolkgang
Copy link
Member

@vvolkgang vvolkgang commented Sep 24, 2024

🎟️ Tracking

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

📔 Objective

Implement the new version calculation in CI-main.yml. Testing this brought the need to trigger builds without distributing them, added a new input to help managing that.

⏰ 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 September 24, 2024 20:28
@codecov
Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.10%. Comparing base (3544d94) to head (6f8e1a9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #970   +/-   ##
=======================================
  Coverage   89.10%   89.10%           
=======================================
  Files         657      657           
  Lines       41317    41317           
=======================================
  Hits        36814    36814           
  Misses       4503     4503           

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

@github-actions
Copy link
Contributor

github-actions bot commented Sep 24, 2024

Logo
Checkmarx One – Scan Summary & Details27a80781-a4b9-4a8b-834c-9485621f5445

New Issues

Severity Issue Source File / Package Checkmarx Insight
MEDIUM Unpinned Actions Full Length Commit SHA /CI-main.yml: 45 Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps...

@vvolkgang vvolkgang force-pushed the ci-version-name branch 14 times, most recently from d639159 to 7112430 Compare October 3, 2024 21:01
# Conflicts:
#	.github/workflows/CI-main.yml
build-version: ${{ needs.resolve-values.outputs.version_name }}
build-number: ${{ needs.resolve-values.outputs.version_number }}
xcode-version: ${{ needs.resolve-values.outputs.xcode_version }}
distribute: ${{ fromJSON(needs.resolve-values.outputs.distribute_to_testflight) }}
Copy link
Member Author

Choose a reason for hiding this comment

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

💡 outputs are always strings, fromJSON is converting it to a boolean

build-number: ${{ needs.resolve-values.outputs.build_number }}
build-version: ${{ needs.resolve-values.outputs.version_name }}
build-number: ${{ needs.resolve-values.outputs.version_number }}
xcode-version: ${{ needs.resolve-values.outputs.xcode_version }}
Copy link
Member Author

Choose a reason for hiding this comment

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

for some reason ${{ env.*** }} isn't available here, we can access a bunch of other contexts, just not env. Seems like an oversight. We'll need to keep routing these through another job for the time being.

@vvolkgang vvolkgang merged commit db484ff into main Oct 3, 2024
8 checks passed
@vvolkgang vvolkgang deleted the ci-version-name branch October 3, 2024 21:31
@vvolkgang vvolkgang removed the hold This shouldn't be merged yet label Oct 3, 2024
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