diff --git a/pull_request_template.md b/pull_request_template.md index 36878ab60..3bbd4657e 100644 --- a/pull_request_template.md +++ b/pull_request_template.md @@ -1,82 +1,38 @@ -_The PR review is to check for sustainability and correctness. Sustainability is actually more business critical as correctness is largely tested into the code over time. Its useful to keep in mind that SW often outlives the HW it was written for and engineers move from job to job so it is critical that code developed for Intel be supportable across many years. It is up to the submitter and reviewer to look at the code from a perspective of what if we have to debug this 3 years from now after the author is no longer available and defect databases have been lost. Yes, that happens all the time when we are working with time scales of more than 2 years. When reviewing your code it is important to look at it from this perspective._ + -### APPLICATION SPECIFIC -- [ ] Does PR change default config files under /etc? If so, will application still work after an upgrade that leaves /etc alone, like a Mender upgrade? -- [ ] Is cloud UI changed? If so, are cloud definition files updated? +### PULL DESCRIPTION +_Provide a 1-2 line brief overview of the changes submitted through the Pull Request..._ -Maintainer Mandatory (to be filled by PR Reviewer/Approving Maintainer) ------------------------------------------------------------------------ -- Maintainer who approves the Pull Request for merge is required to mark the checklist below as appropriate for the PR change reviewed as key proof of attestation indicating reasons for merge. -- Those checklist items which are not marked are considered as not applicable for the PR change. -- Items marked with an asterisk suffix are mandatory items to check and if not marked will be treated as non-compliant pull requests by the maintainers for ISDM compliance. +### Impact Analysis -### QUALITY CHECKS -- [ ] Architectural and Design Fit -- [ ] **_Quality of code (At least one should be checked as applicable)\*_** - - [ ] Commit Message meets guidelines - - [ ] PR changes adhere to industry practices and standards - - [ ] Error and exception code paths implemented correctly - - [ ] Code reviewed for domain or language specific anti-patterns - - [ ] Code is adequately commented - - [ ] Code copyright is correct - - [ ] Confusing logic is explained in comments - - [ ] Commit comment can be used to design a new test case for the changes -- [ ] **_Test coverage shows adequate coverage with required CI functional tests pass on all supported platforms\*_** -- [ ] **_Static code scan report shows zero critical issues\*_** -- [ ] Integration tests are passing +| Info | Please fill out this column | +| ------ | ----------- | +| Root Cause | Specifically for bugs, empty in case of no variants | +| Jira ticket | Add the name to the Jira ticket eg: "NEXMANAGE-622". Automation will do the linking to Jira | -### CODE REVIEW IMPACT -- Summary of Defects Detected in Code Review: **\<%P1*xx,P2*xx,P3*xx,P4*xx%>** \ -Note P1/P2/P3/P4 denotes severity of defects found (Showstopper/High/Medium/Low) and xx denotes number of defects found -### SECURITY CHECKS -Please check if your PR fulfills the following requirements: +### CODE MAINTAINABILITY -- [ ] Follow best practices when handling primitive data types -- [ ] Configure minimal permissions when opening pipes and ports -- [ ] Check contents within input structures are valid before use -- [ ] All forms of input validated -- [ ] Avoid inter-process race conditions -- [ ] Error and exception handling implemented -- [ ] Defend against Canonical Representation Issues - Any paths utilized? -- [ ] Follow 'secure by default' - Any configuration values added -- [ ] Fail safe - Any failure scenarios? -- [ ] Clean up temporary files - Any temporary files being used? +- [ ] Added required new tests relevant to the changes +- [ ] Updated Documentation as relevant to the changes +- [ ] PR change contains code related to security +- [ ] PR introduces changes that break compatibility with other modules/services (If YES, please provide description) +- [ ] Run `go fmt` or `format-python.sh` as applicable +- [ ] Update Changelog +- [ ] Integration tests are passing +- [ ] If Cloudadapter changes, check Azure connectivity manually # _Code must act as a teacher for future developers_