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

Verify idempotency #3158

Merged
merged 30 commits into from
Aug 24, 2023
Merged

Verify idempotency #3158

merged 30 commits into from
Aug 24, 2023

Conversation

andreaTP
Copy link
Contributor

@andreaTP andreaTP commented Aug 16, 2023

This PR adds a job to compare the results of the two subsequent generations performed with Kiota

fixes #2442

@andreaTP
Copy link
Contributor Author

For the records, the IT tests of this PR won't pass:

  • the Java IT are broken due to "package jakarta.annotation does not exist" (should be easy to solve by changing the dependency
  • the "idempotency" ITs are demonstrating the original issue

Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution as always! One minor comment. Also if you want to go ahead and add the missing java dependency, please do.

.github/workflows/integration-tests.yml Show resolved Hide resolved
@sebastienlevert
Copy link
Contributor

What a great contribution @andreaTP! Great idea to validate idempotency!

baywet
baywet previously approved these changes Aug 17, 2023
@baywet
Copy link
Member

baywet commented Aug 21, 2023

Hey @andreaTP
Thank you for the contribution as always and for your patience on this one. I wanted to take the time to RCA the differences and only got the time to do so now...
I've already fixed 3 trivial bugs. I still have to look at a lot of the failures.
A lot of them seem to be caused by #3067
Having a suppression mechanism based on what we have for the integration tests might be helpful to get this PR merged.
What do you think?

@andreaTP
Copy link
Contributor Author

@baywet thanks for getting back as always!
I'm on PTO until the end of the week, so, if you need changes by me you would need to wait for next week.

I do believe that this subject (idempotency) is extremely important to have a healthy project, at the same time, it is, usually, really hard to keep it prioritized by PMs.
I would encourage any trick to keep it relevant at the eye of your BU.

I'm a bit skeptical at ignoring failures for this use-case as those tests are "designed to be unstable" unless all of the bugs have been solved.

Keeping the PR open (and rebasing after any meaningful change) or merge it keeping the tests failing are both strategies that would favor prioritization in my experience.

That said, I have little context about what is going on on your side and I openly let you take the final decision, I have no strong objections and I trust your final judge :-)

@baywet
Copy link
Member

baywet commented Aug 22, 2023

The reason I was mentioning that is because I don't want to hold merging this infrastructure improvement on fixing this bug we already know about #3067

Note for me for later: 22 failing before last force push

@baywet
Copy link
Member

baywet commented Aug 23, 2023

The last force push brought us down to 13 failures. I've implemented a couple of additional fixes which should bring us down to 9 failures. Here is the list of the last remaining 9 ones which all map to known issues. I'll implement a suppression mechanism next.

@baywet baywet marked this pull request as ready for review August 23, 2023 17:03
@baywet baywet requested a review from a team as a code owner August 23, 2023 17:03
Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

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

I think we should be good to merge this now. @andrueastman for final review

@andreaTP
Copy link
Contributor Author

Thanks a lot @baywet for taking over this one 👍

Copy link
Member

@andrueastman andrueastman left a comment

Choose a reason for hiding this comment

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

👍🏼

@baywet baywet merged commit e0fde4d into microsoft:main Aug 24, 2023
170 checks passed
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.

[bug] Kiota generate is not idempotent
4 participants