Skip to content

Migrate from containsAllIn to containsAtLeastElementsIn.#5042

Merged
kolea2 merged 1 commit intogoogleapis:masterfrom
cpovirk:containsallin
May 2, 2019
Merged

Migrate from containsAllIn to containsAtLeastElementsIn.#5042
kolea2 merged 1 commit intogoogleapis:masterfrom
cpovirk:containsallin

Conversation

@cpovirk
Copy link
Copy Markdown

@cpovirk cpovirk commented May 1, 2019

The two behave identically, and containsAllIn is being removed.

The new method was added in Truth 0.44, so update to that.

@cpovirk cpovirk requested a review from a team May 1, 2019 10:59
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 1, 2019
@pmakani pmakani added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 1, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 1, 2019
@nithinsujir nithinsujir self-requested a review May 1, 2019 14:15
Copy link
Copy Markdown
Contributor

@kolea2 kolea2 left a comment

Choose a reason for hiding this comment

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

Looks like the builds are failing due to dependency issues. Can you please take a look?

The two behave identically, and containsAllIn is being removed.

The new method was added in Truth 0.44, so update to that.

That requires a migration from the removed ThrowableSubject.hasMessage(...) to hasMessageThat().isEqualTo(...).

And to preserve RequireUpperBoundDeps, also update checker-compat-qual to 2.5.5.
@cpovirk
Copy link
Copy Markdown
Author

cpovirk commented May 2, 2019

Thanks. I'm hoping that it's fixed now -- mvn install -DskipITs passes -- but I notice that Kokoro is still running 16 hours after my last push.

@sduskis sduskis added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 2, 2019
@sduskis
Copy link
Copy Markdown
Contributor

sduskis commented May 2, 2019

@cpovirk, kokoro kicks in either with a google-cloud-java team member's PR or an explicit label on the PR. I'll kick off the build.

@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 2, 2019
@codecov
Copy link
Copy Markdown

codecov Bot commented May 2, 2019

Codecov Report

Merging #5042 into master will decrease coverage by 0.62%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #5042      +/-   ##
============================================
- Coverage     50.37%   49.74%   -0.63%     
+ Complexity    23722    22364    -1358     
============================================
  Files          2248     2248              
  Lines        226370   221747    -4623     
  Branches      24954    24073     -881     
============================================
- Hits         114024   110301    -3723     
+ Misses       103753   102996     -757     
+ Partials       8593     8450     -143
Impacted Files Coverage Δ Complexity Δ
...oogle/cloud/vision/v1/stub/ImageAnnotatorStub.java 12.5% <0%> (-7.5%) 1% <0%> (ø)
...in/java/com/google/cloud/storage/StorageBatch.java 88% <0%> (-4%) 13% <0%> (ø)
...google/cloud/vision/v1/ImageAnnotatorSettings.java 17.07% <0%> (-3.52%) 2% <0%> (ø)
...e/cloud/vision/v1p4beta1/ImageAnnotatorClient.java 58.69% <0%> (-3.31%) 15% <0%> (-4%)
...e/cloud/vision/v1p3beta1/ImageAnnotatorClient.java 47.05% <0%> (-2.95%) 9% <0%> (-2%)
...e/cloud/vision/v1p2beta1/ImageAnnotatorClient.java 47.05% <0%> (-2.95%) 9% <0%> (-2%)
.../java/com/google/cloud/speech/v1/SpeechClient.java 48.57% <0%> (-2.78%) 10% <0%> (-2%)
...om/google/cloud/speech/v1p1beta1/SpeechClient.java 48.57% <0%> (-2.78%) 10% <0%> (-2%)
...d/webrisk/v1beta1/WebRiskServiceV1Beta1Client.java 63.41% <0%> (-2.5%) 12% <0%> (-3%)
...ogle/cloud/texttospeech/v1/TextToSpeechClient.java 55.88% <0%> (-2.46%) 9% <0%> (-2%)
... and 550 more

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 e09a53e...3909032. Read the comment docs.

@cpovirk
Copy link
Copy Markdown
Author

cpovirk commented May 2, 2019

Ah, thanks! Looks like Kokoro is happy now. Code coverage is allegedly down slightly, but that seems unlikely to mean anything real here.

@chingor13 chingor13 added the type: cleanup An internal cleanup or hygiene concern. label May 2, 2019
Copy link
Copy Markdown
Contributor

@chingor13 chingor13 left a comment

Choose a reason for hiding this comment

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

LGTM

@kolea2 kolea2 merged commit 00380da into googleapis:master May 2, 2019
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. type: cleanup An internal cleanup or hygiene concern.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants