Repository navigation
Derive release version from the git tag instead of hard-coded versions - #684
Merged
Merged
Conversation
The release workflow now passes the version derived from the vX.Y.Z tag to both Docker builds, so no file has to be bumped before a release. SharedAssemblyInfo.cs is replaced by SDK-generated assembly metadata from Directory.Build.props, which now applies uniformly to all projects including the tools, and the repository only keeps the placeholder version 0.0.0. Startup output and OpenTelemetry report the assembly version instead of a hard-coded 1.0.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Pull Request
📖 Description
Before every release the version had to be bumped by hand in
SharedAssemblyInfo.cs,F1ServerApp/package.jsonandF1ServerApp/package-lock.json, matching thevX.Y.Ztag. The backend assembly version never matched the release anyway, because the1.19.*wildcard filled build/revision from the build date/time.This change makes the release tag the single source of truth:
VERSIONbuild arg to both Docker builds.Dockerfilebuilds and publishes with/p:Version=${VERSION}(default0.0.0).F1ServerApp/Dockerfilerunsnpm version "$VERSION" --no-git-tag-version --allow-same-versionbeforenpm run build, inside the image only, so the footer shows the release version.SharedAssemblyInfo.csis removed together withGenerateAssemblyInfo=falsein all projects. Version, product, description, company and copyright are now set once inDirectory.Build.propsand generated by the SDK, so they apply uniformly to every project, including the tools (F1ReplayClient,F1PacketTester,F1SessionFolderRename) and the tests. The previously conflicting values are unified toe-networld.com.0.0.0(Directory.Build.props,package.json,package-lock.json); local and CI builds report it on purpose.<Deterministic>false</Deterministic>(only needed for the wildcard version) and the now redundant<Deterministic>true</Deterministic>inF1PacketTesterare removed.ServiceInformationinF1Server.Observabilityprovides the service name and the informational version; the startup output and all OpenTelemetry resources use it instead of the hard-coded"1.0".docs/ARCHITECTURE.mdand the agent/Copilot instructions describe the new process.🎫 Issues
Closes #683
👩💻 Reviewer Notes
vX.Y.Z: server startup logsversion: X.Y.Z, the web app footer showsX.Y.Z, and OpenTelemetry reportsservice.version = X.Y.Z.IncludeSourceRevisionInInformationalVersionis disabled so the informational version staysX.Y.Zwithout a+<commit>suffix.📑 Test Plan
-p:Version=1.20.3and verified that all assemblies (server, libraries, tools, tests) carry file version1.20.3.0, product version1.20.3, productF1-Telemetry, companye-networld.comand the shared copyright.npm version 1.20.3 --no-git-tag-version --allow-same-versionon a copy ofpackage.json/package-lock.jsonto confirm the Dockerfile step updates all version entries.✅ Checklist
General
Backend-specific (.NET)
F1Server.*.F1Server.Testsfor the change.F1Server.Db.MsSqlMigrations,F1Server.Db.MySqlMigrationsandF1Server.Db.PostgreSqlMigrations.Frontend-specific (Angular)
F1ServerApp.Data/ViewDatacontracts.⏭ Next Steps
vX.Y.Ztag only and verify the reported versions.