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 #3268: Introduce Maven pinning artifacts Mechanism #3270

Merged
merged 14 commits into from
Jun 28, 2021

Conversation

prayutsu
Copy link
Contributor

@prayutsu prayutsu commented Jun 7, 2021

Explanation

Fixes #3268:
Introduced Pinning Artifacts mechanism for Maven dependencies.

Checklist

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • The PR explanation includes the words "Fixes #bugnum: ..." (or "Fixes part of #bugnum" if the PR only partially fixes an issue).
  • The PR follows the style guide.
  • The PR does not contain any unnecessary auto-generated code from Android Studio.
  • The PR is made from a branch that's not called "develop".
  • The PR is made from a branch that is up-to-date with "develop".
  • The PR's branch is based on "develop" and not on any other branch.
  • The PR is assigned to an appropriate reviewer in both the Assignees and the Reviewers sections.

@prayutsu prayutsu requested a review from rt4914 June 7, 2021 12:59
@prayutsu
Copy link
Contributor Author

prayutsu commented Jun 7, 2021

@rt4914 PTAL.

WORKSPACE Show resolved Hide resolved
@prayutsu
Copy link
Contributor Author

prayutsu commented Jun 7, 2021

It looks like the fail_if_repin_reqired attribute isn't set properly (as Bazel Lint test is failing and also Build is not failing upon editing Maven dependencies).
It seems fail_if_repin_required is declared as a variable rather than an attribute.

@fsharpasharp fsharpasharp assigned prayutsu and unassigned fsharpasharp Jun 8, 2021
@prayutsu
Copy link
Contributor Author

prayutsu commented Jun 8, 2021

@rt4914 @BenHenning Should I update the CODEOWNERS file to mention appropriate CODEOWNERS for maven_install.json?

@prayutsu prayutsu assigned fsharpasharp and unassigned prayutsu Jun 8, 2021
@prayutsu
Copy link
Contributor Author

prayutsu commented Jun 8, 2021

@rt4914 @fsharpasharp PTAL.

Copy link
Contributor

@fsharpasharp fsharpasharp left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@oppiabot
Copy link

oppiabot bot commented Jun 9, 2021

Unassigning @fsharpasharp since they have already approved the PR.

Copy link
Contributor

@rt4914 rt4914 left a comment

Choose a reason for hiding this comment

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

@prayutsu Update the code-owner file to mention Ben's name for maven file. Also assigning this to Ben.

@rt4914 rt4914 assigned BenHenning and prayutsu and unassigned rt4914 Jun 9, 2021
@prayutsu prayutsu requested a review from a team as a code owner June 9, 2021 19:56
@prayutsu prayutsu requested a review from seanlip June 9, 2021 19:56
@prayutsu prayutsu removed their assignment Jun 22, 2021
Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

@prayutsu apologies for the delayed review. PTAL at my latest comments--I think you might've made a mistake when changing WORKSPACE to point to third_party/maven_install.json.

Also, just to check: doesn't maven_install.json need to be moved to third_party/?

WORKSPACE Outdated Show resolved Hide resolved
third_party/versions.bzl Show resolved Hide resolved
.github/CODEOWNERS Outdated Show resolved Hide resolved
@BenHenning BenHenning assigned prayutsu and unassigned BenHenning Jun 28, 2021
@prayutsu prayutsu assigned BenHenning and unassigned prayutsu Jun 28, 2021
Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

@prayutsu I think you need to add a CODEOWNERS entry for third_party/ (that can go to me). Also, it looks like the maven_install.json file needs to be regenerated.

Beyond that, the Gradle test failures seem to be #2844 which is disappointing--I thought that was addressed. Rerunning them should hopefully fix the issue.

@BenHenning BenHenning assigned prayutsu and unassigned BenHenning Jun 28, 2021
@prayutsu
Copy link
Contributor Author

@prayutsu I think you need to add a CODEOWNERS entry for third_party/ (that can go to me). Also, it looks like the maven_install.json file needs to be regenerated.

Beyond that, the Gradle test failures seem to be #2844 which is disappointing--I thought that was addressed. Rerunning them should hopefully fix the issue.

Done.

@prayutsu prayutsu assigned BenHenning and unassigned prayutsu Jun 28, 2021
Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @prayutsu. Just two last quick comments.

.github/CODEOWNERS Outdated Show resolved Hide resolved
third_party/maven_install.json Show resolved Hide resolved
@BenHenning BenHenning assigned prayutsu and unassigned BenHenning Jun 28, 2021
@prayutsu prayutsu assigned BenHenning and unassigned prayutsu Jun 28, 2021
@BenHenning
Copy link
Sponsor Member

Per previous runs, the compute affected tests script doesn't seem to produce any tests to run here, so skipping it since the last two runs have hung.

Copy link
Sponsor Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @prayutsu. This LGTM!

@BenHenning BenHenning enabled auto-merge (squash) June 28, 2021 19:45
@oppiabot
Copy link

oppiabot bot commented Jun 28, 2021

Unassigning @BenHenning since they have already approved the PR.

@BenHenning BenHenning merged commit dcd38c1 into oppia:develop Jun 28, 2021
@prayutsu prayutsu deleted the introduce-maven-pinning-artifacts branch June 29, 2021 04:20
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.

Introduce Pinning Arifacts Mechanism for Maven dependencies
5 participants