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

[#551] docs: update templates for flaky test and pull request #588

Merged
merged 9 commits into from
Feb 16, 2023

Conversation

kaijchen
Copy link
Contributor

@kaijchen kaijchen commented Feb 10, 2023

What changes were proposed in this pull request?

Update flaky test template and pr template.

Why are the changes needed?

  1. Flaky test template
    • Title is not consistent with other templates.
    • Default parent issue is invalid.
  2. PR template

Does this PR introduce any user-facing change?

No.

How was this patch tested?

No need.

@kaijchen kaijchen changed the title docs: update flaky test template and pr template [MINOR] docs: update flaky test template and pr template Feb 10, 2023
@kaijchen kaijchen changed the title [MINOR] docs: update flaky test template and pr template [#551] docs: update flaky test template and pr template Feb 10, 2023
@kaijchen kaijchen changed the title [#551] docs: update flaky test template and pr template [#551] docs: update flaky test and pull request template Feb 10, 2023
@codecov-commenter
Copy link

codecov-commenter commented Feb 10, 2023

Codecov Report

Merging #588 (9f419d1) into master (fdc2743) will increase coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #588      +/-   ##
============================================
+ Coverage     60.84%   60.85%   +0.01%     
- Complexity     1797     1798       +1     
============================================
  Files           214      214              
  Lines         12398    12398              
  Branches       1051     1051              
============================================
+ Hits           7543     7545       +2     
+ Misses         4445     4444       -1     
+ Partials        410      409       -1     
Impacted Files Coverage Δ
...pache/hadoop/mapreduce/task/reduce/RssFetcher.java 92.30% <0.00%> (+1.53%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@kaijchen kaijchen marked this pull request as draft February 10, 2023 08:02
@kaijchen kaijchen marked this pull request as ready for review February 10, 2023 08:16
jerqi
jerqi previously approved these changes Feb 10, 2023
Copy link
Contributor

@jerqi jerqi left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @kaijchen

.github/PULL_REQUEST_TEMPLATE Outdated Show resolved Hide resolved
.github/PULL_REQUEST_TEMPLATE Outdated Show resolved Hide resolved

Please outline the changes and how this PR fixes the issue.
Copy link
Contributor

Choose a reason for hiding this comment

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

You should document these lines should be replaced.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is it enough to put the tips in parentheses?


Fix: #
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not clear. Please add more comments about this section.

Copy link
Contributor Author

@kaijchen kaijchen Feb 10, 2023

Choose a reason for hiding this comment

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

This is for reminding PR author to link the issue.

Copy link
Contributor

Choose a reason for hiding this comment

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

I know you intention. But contributor may got confused about what this is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How to change it? How about this?

Suggested change
Fix: #
Fix: #(issue id)


Please list the user-facing changes introduced by your change, including
1. change in user-facing APIs
2. addition or removal of property keys
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. if no user-facing changes introduced, simply write 'NO'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added default answer: "No."

@kaijchen
Copy link
Contributor Author

Thanks @advancedxy @jerqi for the review.
Although there might be some concerns, PPMC members and committers are able to edit the PR title and description.
I think we can give it a try.

@kaijchen kaijchen changed the title [#551] docs: update flaky test and pull request template [#551] docs: update templates for flaky test and pull request Feb 10, 2023
- "[MINOR] refactor: fix typo in variable name"
- "[MINOR] docs: fix typo in README"
- "[#255] test: fix flaky test NameOfTheTest"
Reference: https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716
Copy link
Contributor

Choose a reason for hiding this comment

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

is it a good idea to reference a gist url here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

why not?

Copy link
Contributor

Choose a reason for hiding this comment

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

I prefer a formal URL, such as the conventional commit urk: https://www.conventionalcommits.org/en/v1.0.0/

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's make it a bit clear:

We are proposing an PR title that prefixed with github's issut autolink then a conventional commits title?
The conventional commit could be referred: https://www.conventionalcommits.org/en/v1.0.0/

@advancedxy
Copy link
Contributor

Thanks @advancedxy @jerqi for the review. Although there might be some concerns, PPMC members and committers are able to edit the PR title and description. I think we can give it a try.

Yeah. I think so. However is it possible for you to write a COMMITTER_GUIDE.md in the repo root dir? The COMMITTER_GUIDE should be how to modify the pr title/summary before merging a PR.

@kaijchen kaijchen merged commit 4f07b0c into apache:master Feb 16, 2023
@kaijchen
Copy link
Contributor Author

Thanks @advancedxy and @jerqi for the review.

@kaijchen kaijchen deleted the template branch February 16, 2023 12:59
@@ -66,7 +66,7 @@ body:
- type: textarea
attributes:
label: Parent issue
value: "#1733"
value: ""
Copy link
Member

Choose a reason for hiding this comment

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

value must be of type String and cannot be empty. @kaijchen

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, can you submit a PR to fix it?
Maybe let's just remove this field?

Copy link
Member

Choose a reason for hiding this comment

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

ok

xianjingfeng pushed a commit to xianjingfeng/incubator-uniffle that referenced this pull request Apr 5, 2023
…pache#588)

### What changes were proposed in this pull request?

Update flaky test template and pr template.

### Why are the changes needed?

1. Flaky test template
    * Title is not consistent with other templates.
    * Default parent issue is invalid. 
2. PR template
    * Make the instructions shorter to read.
    * Let PR author remove the instructions so they will read (hopefully).
    * Update instructions, and add example for PR title. (Resolves apache#551)

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

No need.
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.

[Improvement][Style] add autolink to issues in PR title and commit msg
5 participants