Skip to content

Conversation

@darshanparajuli
Copy link
Collaborator

@darshanparajuli darshanparajuli commented Jan 11, 2022

Addresses #624.

Note: this is my very first PR for this project, I hope I did not make lots of mistakes (whether in assumptions or otherwise).

@CLAassistant
Copy link

CLAassistant commented Jan 11, 2022

CLA assistant check
All committers have signed the CLA.

@darshanparajuli darshanparajuli marked this pull request as ready for review January 11, 2022 18:50
Copy link
Contributor

@steve-the-edwards steve-the-edwards left a comment

Choose a reason for hiding this comment

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

Thanks - looks good to me but as @rjrjr noted we'll have to plan for integration with PoS tests.

I wonder if we want to invert the API and provide opportunity to opt out of it until we have socialized the change? the Worker one was easier to socialize because it came with Workflow1 API changes.

@rjrjr
Copy link
Collaborator

rjrjr commented Jan 12, 2022

I'm strongly inclined to YOLO this one. It's still early days for these tests, and the inconsistency w/worker is so jarring. It's hard to imagine a scenario someone has a test that's relying on breaking if a new side effect appears.

Maybe ask for discussion on the public Slack and Square Slack?

@darshanparajuli
Copy link
Collaborator Author

I have asked on both public and Square slack to see if anybody have concerns with this.

@darshanparajuli
Copy link
Collaborator Author

darshanparajuli commented Jan 13, 2022

I don't think there were any major concerns against this, so we should be good to merge? not sure how to re-kick CI to make it happy again.

@rjrjr
Copy link
Collaborator

rjrjr commented Jan 13, 2022

Yeah, let's ship it.

If you click through any Details link in the CI report above there is a Rerun button at the top of the next page. Clicking it now…

@darshanparajuli
Copy link
Collaborator Author

darshanparajuli commented Jan 13, 2022

If you click through any Details link in the CI report above there is a Rerun button at the top of the next page. Clicking it now…

Thanks! I don't see "Rerun" button on the details page.

@rjrjr
Copy link
Collaborator

rjrjr commented Jan 13, 2022

If you click through any Details link in the CI report above there is a Rerun button at the top of the next page. Clicking it now…

Thanks! I don't see "Rerun" button on the details page.

Ah, probably an ownership thing.

Anyway, I'll merge as soon as CI is green enough.

(The SDK 21 shard is so flaky that it's useless, really should remove it. But I'm hoping that the fix for #570 will tame it.)

@rjrjr
Copy link
Collaborator

rjrjr commented Jan 13, 2022

@darshanparajuli You have ktlint violations. The best way to get your PR green is to open a Phone AVD and run ./gradlew build connectedCheck, it only takes a few minutes.

@darshanparajuli
Copy link
Collaborator Author

Ah, probably an ownership thing.

Anyway, I'll merge as soon as CI is green enough.

(The SDK 21 shard is so flaky that it's useless, really should remove it. But I'm hoping that the fix for #570 will tame it.)

Sounds good, thank you!

@darshanparajuli You have ktlint violations. The best way to get your PR green is to open a Phone AVD and run ./gradlew build connectedCheck, it only takes a few minutes.

On it.

@darshanparajuli darshanparajuli force-pushed the darshan/make-side-effect-expectations-explicit-requirement branch from a8888a3 to 93b0089 Compare January 13, 2022 17:37
@darshanparajuli darshanparajuli force-pushed the darshan/make-side-effect-expectations-explicit-requirement branch from 93b0089 to 3f2d2c0 Compare January 13, 2022 17:52
@darshanparajuli
Copy link
Collaborator Author

CI failed with

* What went wrong:
Execution failed for task ':trace-encoder:kaptGenerateStubsKotlin'.
> Error while evaluating property 'filteredArgumentsMap' of task ':trace-encoder:kaptGenerateStubsKotlin'
   > Could not resolve all files for configuration ':trace-encoder:compileClasspath'.
      > Could not download moshi-adapters-1.12.0.jar (com.squareup.moshi:moshi-adapters:1.12.0)
         > Could not get resource 'https://repo.maven.apache.org/maven2/com/squareup/moshi/moshi-adapters/1.12.0/moshi-adapters-1.12.0.jar'.
            > Could not GET 'https://repo.maven.apache.org/maven2/com/squareup/moshi/moshi-adapters/1.12.0/moshi-adapters-1.12.0.jar'.
               > Connection reset

@rjrjr
Copy link
Collaborator

rjrjr commented Jan 13, 2022

That's what we in the trade call "green enough," since SDK 24 passed. Merging.

@rjrjr rjrjr merged commit 3d79f14 into square:main Jan 13, 2022
rjrjr added a commit that referenced this pull request Jan 19, 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.

4 participants