Skip to content

ORC-708: FIX Snapshot publishing - #593

Closed
pgaref wants to merge 3 commits into
apache:masterfrom
pgaref:ORC-708
Closed

pgaref wants to merge 3 commits into
apache:masterfrom
pgaref:ORC-708

Conversation

@pgaref

@pgaref pgaref commented Dec 28, 2020 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Our snapshot pub seems to be broken currently. This PR investigates the issue

Why are the changes needed?

FIX snapshot publishing

How was this patch tested?

Manual

@pgaref

pgaref commented Dec 28, 2020

Copy link
Copy Markdown
Contributor Author

Hey @dongjoon-hyun any idea how we can actually test this before landing on the branch? :)

@pgaref
pgaref requested a review from dongjoon-hyun December 28, 2020 17:39

@dongjoon-hyun dongjoon-hyun left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Are you sure that your claim snapshot publishing is broken by ORC-704?

ORC-704 broke snapshot publishing

I also double-check the result. Please see Apache ORC GitHub Action.
Screen Shot 2020-12-28 at 5 24 14 PM

And, the following is my fork which is disabled correctly.
Screen Shot 2020-12-28 at 5 42 08 PM

In other words, the root cause analysis is wrong. The failure is due to the following policy change. For me, it looks like Apache repository policy change.

samuelmeuli/action-maven-publish@v1 is not allowed to be used in apache/orc. Actions in this workflow must be: created by GitHub, within a repository owned by apache or match the following: apache/, adoptopenjdk/, gradle/wrapper-validation-action.

Comment thread .github/workflows/publish_snapshot.yml Resolved

- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
uses: samuelmeuli/action-maven-publish@v1.4.0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

According to the error message, I'm not sure this will work here. Do you have any reference why this fix the current error?

samuelmeuli/action-maven-publish@v1 is not allowed to be used in apache/orc.
Actions in this workflow must be: created by GitHub, verified in the GitHub Marketplace,
within a repository owned by apache or match the following:
adoptopenjdk/*, apache/*, gradle/wrapper-validation-action.

@pgaref pgaref Dec 29, 2020 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Are you sure that your claim snapshot publishing is broken by ORC-704?

You are right, 704 is not related -- just happened that all commits after that failed to publish a snapshot.

Regarding the error message: the confusion comes from the fact that the action seems to be in the Github marketplace already.

Do you have any reference why this fix the current error?

No ref here, just wanted to check if this helps with the policy issue above -- maybe the latest version is verified while previous ones not? -> just checked and that's not the case.

Maybe we could use a custom deployment script instead of a GH action to sort this out -- what do you think? :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ya, +1 for that.

@dongjoon-hyun

Copy link
Copy Markdown
Member

If you don't mind, I'm going to try maven command directly instead of the samuelmeuli/action-maven-publish@v1.

@pgaref

pgaref commented Dec 30, 2020

Copy link
Copy Markdown
Contributor Author

If you don't mind, I'm going to try maven command directly instead of the samuelmeuli/action-maven-publish@v1.

Sure, totally fine by me

@dongjoon-hyun

dongjoon-hyun commented Jan 3, 2021 •

Copy link
Copy Markdown
Member

Thank you, @pgaref .
I made a PR, #598 .

@pgaref pgaref closed this Jan 3, 2021
@pgaref
pgaref deleted the ORC-708 branch January 3, 2021 08:59
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.

2 participants