Skip to content

Conversation

@mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Feb 25, 2025

The docs build requires this file to contain the current version number.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@mrgrain mrgrain added the pr/exempt-integ-test Skips the integ test steps if set. label Feb 25, 2025
// This is required because the zip file needs to have this structure when created
toolkitLib.packageTask.spawn(toolkitLibDocs, { args: ['--out dist/docs/cdk/api/toolkit-lib'] });
// The docs build needs the version in a specific file at the nested root
toolkitLib.packageTask.exec('(cat dist/version.txt || echo "latest") > dist/docs/cdk/api/toolkit-lib/VERSION');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

dist/version.txt is only available during release. Otherwise just default to the generic latest.

Copy link
Contributor

Choose a reason for hiding this comment

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

Not that it really matters but wouldn't it make more sense to default to 0.0.0 - which is the version number during development?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My thinking was that worst case scenario we will show "latest" on the docs website. That feels better than accidentally showing "0.0.0".

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.53%. Comparing base (46d28cb) to head (e8d4f5e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #131      +/-   ##
==========================================
- Coverage   84.83%   84.53%   -0.30%     
==========================================
  Files         196      196              
  Lines       35089    35089              
  Branches     4540     4533       -7     
==========================================
- Hits        29768    29663     -105     
- Misses       5178     5288     +110     
+ Partials      143      138       -5     
Flag Coverage Δ
suite.unit 84.53% <ø> (-0.30%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@iliapolo iliapolo disabled auto-merge February 25, 2025 13:16
@iliapolo
Copy link
Contributor

Removed from queue if you want to address the comment

@mrgrain mrgrain added this pull request to the merge queue Feb 25, 2025
Merged via the queue into main with commit 2a57bc9 Feb 25, 2025
15 checks passed
@mrgrain mrgrain deleted the mrgrain/docs/toolkit-lib-docs-version branch February 25, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr/exempt-integ-test Skips the integ test steps if set.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants