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

GH-14997: [Release] Ensure archery release tasks works with both new style GitHub issues and old style JIRA issues #33615

Merged
merged 8 commits into from Jan 18, 2023

Conversation

@github-actions
Copy link

@raulcd
Copy link
Member Author

raulcd commented Jan 12, 2023

This is an example of how the new changelog for 11.0.0 will look with a mix of issues from JIRA and GITHUB: https://gist.github.com/raulcd/1eebbfc28e890d9abbb248db48ba5775

@raulcd raulcd changed the title GH-14997: [Release] Archery curate release takes into account both GitHub and old Apache Arrow JIRA issues GH-14997: [Release] Archery release tasks takes into account both GitHub and old Apache Arrow JIRA issues Jan 13, 2023
@raulcd raulcd marked this pull request as ready for review January 13, 2023 15:55
@raulcd raulcd requested review from kou and assignUser January 13, 2023 16:00
dev/archery/archery/release/core.py Outdated Show resolved Hide resolved
dev/archery/archery/release/core.py Outdated Show resolved Hide resolved
dev/archery/archery/release/core.py Outdated Show resolved Hide resolved
dev/archery/archery/release/core.py Outdated Show resolved Hide resolved
dev/archery/archery/release/core.py Outdated Show resolved Hide resolved
Comment on lines +129 to +125
def is_pr(self):
return bool(self._github_issue and self._github_issue.pull_request)
Copy link
Member

Choose a reason for hiding this comment

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

It seems that self._github_issue is needed only for this. How about setting self.is_pr instead of keeping self._github_issue?

Copy link
Member Author

Choose a reason for hiding this comment

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

I do prefer to keep the github_issue cached on our Issue when available (not for PARQUET) so if we need other things in the future like, components, the PR associated, the sha commit of the merge, etcetera we already have that available.

Copy link
Member

Choose a reason for hiding this comment

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

I see. I don't object it.

FYI: Reusing this class for Jira issue may not be a good idea. If I implement this, I'll define GitHubIssue(Issue) and JiraIssue(Issue) and JiraIssue.is_pr always returns False.

@raulcd
Copy link
Member Author

raulcd commented Jan 16, 2023

The linting error is coming from master and has been merged there already:

/arrow/dev/merge_arrow_pr.py:578:80: E501 line too long (87 > 79 characters)

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1 after we rebase on master.

Comment on lines +129 to +125
def is_pr(self):
return bool(self._github_issue and self._github_issue.pull_request)
Copy link
Member

Choose a reason for hiding this comment

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

I see. I don't object it.

FYI: Reusing this class for Jira issue may not be a good idea. If I implement this, I'll define GitHubIssue(Issue) and JiraIssue(Issue) and JiraIssue.is_pr always returns False.

@pitrou
Copy link
Member

pitrou commented Jan 17, 2023

Style issue: when reading "Archery release tasks takes into account both GitHub and old Apache Arrow JIRA issues", we don't know whether that's describing the situation pre-PR or post-PR.

To fix this, it is preferrable to use an infinitive to describe what the PR does. For example: "Ensure that Archery release tasks work with both ...".

@wjones127 for suggestions

@raulcd raulcd changed the title GH-14997: [Release] Archery release tasks takes into account both GitHub and old Apache Arrow JIRA issues GH-14997: [Release] Ensure archery release tasks works with both new style GitHub issues and old style JIRA issues Jan 17, 2023
@raulcd raulcd merged commit 4e439f6 into apache:master Jan 18, 2023
raulcd added a commit that referenced this pull request Jan 18, 2023
…style GitHub issues and old style JIRA issues (#33615)

I've decided to do all the archery release tasks on a single PR:
* Closes: #14997
* Closes: #14999
* Closes: #15002

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
@ursabot
Copy link

ursabot commented Jan 19, 2023

Benchmark runs are scheduled for baseline = c8d6110 and contender = 4e439f6. 4e439f6 is a master commit associated with this PR. Results will be available as each benchmark for each run completes.
Conbench compare runs links:
[Finished ⬇️0.0% ⬆️0.0%] ec2-t3-xlarge-us-east-2
[Failed ⬇️0.33% ⬆️0.0%] test-mac-arm
[Finished ⬇️1.28% ⬆️0.0%] ursa-i9-9960x
[Finished ⬇️0.28% ⬆️0.0%] ursa-thinkcentre-m75q
Buildkite builds:
[Finished] 4e439f6a ec2-t3-xlarge-us-east-2
[Finished] 4e439f6a test-mac-arm
[Finished] 4e439f6a ursa-i9-9960x
[Finished] 4e439f6a ursa-thinkcentre-m75q
[Finished] c8d6110a ec2-t3-xlarge-us-east-2
[Failed] c8d6110a test-mac-arm
[Finished] c8d6110a ursa-i9-9960x
[Finished] c8d6110a ursa-thinkcentre-m75q
Supported benchmarks:
ec2-t3-xlarge-us-east-2: Supported benchmark langs: Python, R. Runs only benchmarks with cloud = True
test-mac-arm: Supported benchmark langs: C++, Python, R
ursa-i9-9960x: Supported benchmark langs: Python, R, JavaScript
ursa-thinkcentre-m75q: Supported benchmark langs: C++, Java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants