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

[multimod] Remove tag push, print instead. #202

Merged
merged 7 commits into from
Nov 29, 2022

Conversation

bryan-aguilar
Copy link
Contributor

@bryan-aguilar bryan-aguilar commented Nov 27, 2022

This PR removes the --push flag on multimod tag. As shown in issue #177 push required additional authentication to be set up since it did not natively read git credentials from the environment. Multiple options were discussed in #177. This PR implements the last suggestion which prints all tags separated by a newline. This --print-tags option can then be worked into existing repositories release process.

The push code has been removed from multimod. I believe the os.exec option is still possible but I have not had time to address it. This option provides a quick win while also removing bugged code. I suggest we reopen #157 which can be assigned and investigated in the future.

Fixes #177

bryaag@147ddac12c15 multimod % ./multimod tag --module-set-name tools --commit-hash ba1996ae547f1db9f1925961950b97fc6cf2a636 --print-tags | grep v0.2.0 |  xargs -L 1 echo testOutput  
Tagging commit ba1996ae547f1db9f1925961950b97fc6cf2a636:
v0.2.0
checkdoc/v0.2.0
chloggen/v0.2.0
crosslink/v0.2.0
dbotconf/v0.2.0
issuegenerator/v0.2.0
multimod/v0.2.0
semconvgen/v0.2.0
testOutput v0.2.0
testOutput checkdoc/v0.2.0
testOutput chloggen/v0.2.0
testOutput crosslink/v0.2.0
testOutput dbotconf/v0.2.0
testOutput issuegenerator/v0.2.0
testOutput multimod/v0.2.0
testOutput semconvgen/v0.2.0

@bryan-aguilar bryan-aguilar requested review from a team and mx-psi November 27, 2022 23:15
@codecov
Copy link

codecov bot commented Nov 27, 2022

Codecov Report

Base: 58.26% // Head: 58.17% // Decreases project coverage by -0.09% ⚠️

Coverage data is based on head (67ab3f0) compared to base (33d976e).
Patch coverage: 37.50% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #202      +/-   ##
==========================================
- Coverage   58.26%   58.17%   -0.10%     
==========================================
  Files          44       44              
  Lines        1953     1927      -26     
==========================================
- Hits         1138     1121      -17     
+ Misses        685      680       -5     
+ Partials      130      126       -4     
Impacted Files Coverage Δ
multimod/internal/tag/tag.go 51.72% <0.00%> (-1.54%) ⬇️
multimod/cmd/tag.go 64.51% <75.00%> (-2.16%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

.chloggen/mm_printTags.yaml Outdated Show resolved Hide resolved
@mx-psi
Copy link
Member

mx-psi commented Nov 28, 2022

@bogdandrutu maybe you want to review this?

@bogdandrutu bogdandrutu merged commit 0c80966 into open-telemetry:main Nov 29, 2022
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.

Error using multimod push tags
3 participants