Skip to content

script to add versioning info#399

Merged
lalitb merged 14 commits intoopen-telemetry:masterfrom
lalitb:version-hook-2
Dec 4, 2020
Merged

script to add versioning info#399
lalitb merged 14 commits intoopen-telemetry:masterfrom
lalitb:version-hook-2

Conversation

@lalitb
Copy link
Copy Markdown
Member

@lalitb lalitb commented Nov 20, 2020

This fixes #397

This PR brings script for adding versioning information in version.cc in sdk. It can be used in following ways:

  • Executing as pre-commit/pre-merge-commit git hooks - It won't be feasible to enforce this for every developer, unless we checkin it at .git\hooks\pre-commit. Not sure if this is good practice to enforce developers to run scripts locally. As of now developers need to create this link manually first time after fork.

  • This can be added as github server-side webooks, which would need more management as separate server need to be created to listen to github events. Ignoring this option for now.

  • It is definitively required to run this script as part of release process, and this has been documented in RELEASING.md.

  • If it is not important to checkin the modified version.cc file in repo, and only add it as part of release asset, the process can be automated through separate Github Release workflow which first runs this script, create release and subsequently upload release asset (https://github.com/actions/upload-release-asset). This way, only created releases will have the correct build information, and not the github repo, and we can automate release creation through github action. Earlier this year, github announced new feature to manually trigger github workflow from action tab in github UI (https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/) , which can be used to manually trigger Release creation from UI.

@lalitb lalitb requested a review from a team November 20, 2020 17:53
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 20, 2020

Codecov Report

Merging #399 (9dd8b72) into master (036fc7f) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #399   +/-   ##
=======================================
  Coverage   94.77%   94.77%           
=======================================
  Files         175      175           
  Lines        7591     7591           
=======================================
  Hits         7194     7194           
  Misses        397      397           

Comment thread RELEASING.md Outdated
Comment thread RELEASING.md
Comment thread RELEASING.md
Comment thread RELEASING.md
Comment thread sdk/src/version/version.cc Outdated
Comment thread RELEASING.md Outdated
Co-authored-by: Tom Tan <lilotom@gmail.com>
@lalitb lalitb merged commit 956270e into open-telemetry:master Dec 4, 2020
GerHobbelt pushed a commit to GerHobbelt/opentelemetry-cpp that referenced this pull request Aug 31, 2025
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.

Make version available for runtime query

4 participants