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

SF-2480 Remove revision number from product version #2361

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

RaymondLuong3
Copy link
Collaborator

@RaymondLuong3 RaymondLuong3 commented Mar 1, 2024

I couldn't find a way to drop the revision number from the product version in our build steps, so I do a split on the product version. If there is a better way, I am happy to learn.


This change is Reviewable

Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.85%. Comparing base (3ffeb97) to head (e869522).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2361   +/-   ##
=======================================
  Coverage   75.85%   75.85%           
=======================================
  Files         478      478           
  Lines       27885    27885           
  Branches     4590     4590           
=======================================
  Hits        21151    21151           
  Misses       6012     6012           
  Partials      722      722           

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

@pmachapman pmachapman self-requested a review March 3, 2024 23:43
@pmachapman pmachapman self-assigned this Mar 3, 2024
Copy link
Collaborator

@pmachapman pmachapman left a comment

Choose a reason for hiding this comment

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

It turns out this is caused by a feature introduced quietly into the .NET 8.0 SDK, and affects the building of .NET 8.0 and .NET 6.0 binaries.

I disabled it by adding this line to SIL.XForge.Scripture.csproj:

    <IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>

But you might want to take a look at dotnet/sdk#34568 and determine the best way to resolve it. Perhaps via a Directory.Build.props file in the repo root? - see dotnet/sdk#34568 (comment)

I can potentially see the benefit of this version hash for dev environments (notice how it gets recorded in sync_metrics in MongoDB), but I think it might be more hassle than it is worth?

Reviewed all commit messages.
Reviewable status: 0 of 1 files reviewed, all discussions resolved

@RaymondLuong3 RaymondLuong3 force-pushed the fix/sf-2480-build-numbers branch from 9b9d54d to dd777c2 Compare March 4, 2024 18:56
Copy link
Collaborator Author

@RaymondLuong3 RaymondLuong3 left a comment

Choose a reason for hiding this comment

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

Wow, I wish I had thought about googling this. Seems like there are people who are not a fan of how this feature was rolled out. I've added the Directory.Build.props file with instructions to disable this feature. I agree, I don't see much benefit having the version number visible for dev environments.

Reviewable status: 0 of 2 files reviewed, all discussions resolved (waiting on @pmachapman)

Copy link
Collaborator

@pmachapman pmachapman left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @RaymondLuong3)

@RaymondLuong3 RaymondLuong3 force-pushed the fix/sf-2480-build-numbers branch from dd777c2 to e869522 Compare March 6, 2024 20:04
@RaymondLuong3 RaymondLuong3 merged commit 834cf79 into master Mar 6, 2024
16 checks passed
@RaymondLuong3 RaymondLuong3 deleted the fix/sf-2480-build-numbers branch March 6, 2024 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants