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

fix(java): detect need for snapshot unless a snapshot is explicitly requested #518

Merged
merged 2 commits into from
Aug 12, 2020

Conversation

chingor13
Copy link
Contributor

@chingor13 chingor13 commented Aug 12, 2020

It seems that snapshot is being explicitly set to false. This is preventing snapshots being created except when snapshot is explicitly being set to true. (Snapshots are only being created by the nightly cron bot job).

@chingor13 chingor13 requested a review from bcoe August 12, 2020 19:41
@chingor13 chingor13 requested a review from a team as a code owner August 12, 2020 19:41
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 12, 2020
@chingor13
Copy link
Contributor Author

For the test that's failing, I don't think that condition is actually valid. If the repo needs a snapshot, we should propose the snapshot, otherwise the repo is blocked until someone (cron) explicitly asks for a snapshot.

…a snapshot based on whether a snapshot is needed
@codecov
Copy link

codecov bot commented Aug 12, 2020

Codecov Report

Merging #518 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #518      +/-   ##
==========================================
+ Coverage   81.66%   81.67%   +0.01%     
==========================================
  Files          42       42              
  Lines        4973     4977       +4     
  Branches      400      401       +1     
==========================================
+ Hits         4061     4065       +4     
  Misses        911      911              
  Partials        1        1              
Impacted Files Coverage Δ
src/releasers/java-bom.ts 93.79% <100.00%> (+0.04%) ⬆️
src/releasers/java-yoshi.ts 88.11% <100.00%> (+0.08%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8e26bf4...b23ad3a. Read the comment docs.

@chingor13 chingor13 changed the title fix: explicitly check for snapshot request and no snapshot needed fix(java): detect need for snapshot unless a snapshot is explicitly requested Aug 12, 2020
@chingor13
Copy link
Contributor Author

header-check is failing on the snapshot js files which are generated and will be stomped on

@JustinBeckwith JustinBeckwith merged commit 1e73a28 into googleapis:master Aug 12, 2020
@JustinBeckwith
Copy link
Contributor

@chingor13 does the config for header-check support ignore files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants