github.com/hs0210/hashicorp-terraform@v0.11.12-beta1/docs/maintainer-etiquette.md (about) 1 # Maintainer's Etiquette 2 3 Are you a core maintainer of Terraform? Great! Here's a few notes 4 to help you get comfortable when working on the project. 5 6 ## Expectations 7 8 We value the time you spend on the project and as such your maintainer status 9 doesn't imply any obligations to do any specific work. 10 11 ### Your PRs 12 13 These apply to all contributors, but maintainers should lead by examples! :wink: 14 15 - for `provider/*` PRs it's useful to attach test results & advise on how to run the relevant tests 16 - for `bug`fixes it's useful to attach repro case, ideally in a form of a test 17 18 ### PRs/issues from others 19 20 - you're welcomed to triage (attach labels to) other PRs and issues 21 - we generally use 2-label system (= at least 2 labels per issue/PR) where one label is generic and other one API-specific, e.g. `enhancement` & `provider/aws` 22 23 ## Merging 24 25 - you're free to review PRs from the community or other HC employees and give :+1: / :-1: 26 - if the PR submitter has push privileges (recognizable via `Collaborator`, `Member` or `Owner` badge) - we expect **the submitter** to merge their own PR after receiving a positive review from either HC employee or another maintainer. _Exceptions apply - see below._ 27 - we prefer to use the Github's interface or API to do this, just click the green button 28 - squash? 29 - squash when you think the commit history is irrelevant (will not be helpful for any readers in T+6months) 30 - Add the new PR to the **Changelog** if it may affect the user (almost any PR except test changes and docs updates) 31 - we prefer to use the Github's web interface to modify the Changelog and use `[GH-12345]` to format the PR number. These will be turned into links as part of the release process. Breaking changes should be always documented separately. 32 33 ## Release process 34 35 - HC employees are responsible for cutting new releases 36 - The employee cutting the release will always notify all maintainers via Slack channel before & after each release 37 so you can avoid merging PRs during the release process. 38 39 ## Exceptions 40 41 Any PR that is significantly changing or even breaking user experience cross-providers should always get at least one :+1: from a HC employee prior to merge. 42 43 It is generally advisable to leave PRs labelled as `core` for HC employees to review and merge. 44 45 Examples include: 46 - adding/changing/removing a CLI (sub)command or a [flag](https://github.com/hashicorp/terraform/pull/12939) 47 - introduce a new feature like [Environments](https://github.com/hashicorp/terraform/pull/12182) or [Shadow Graph](https://github.com/hashicorp/terraform/pull/9334) 48 - changing config (HCL) like [adding support for lists](https://github.com/hashicorp/terraform/pull/6322) 49 - change of the [build process or test environment](https://github.com/hashicorp/terraform/pull/9355) 50 51 ## Breaking Changes 52 53 - we always try to avoid breaking changes where possible and/or defer them to the nearest major release 54 - [state migration](https://github.com/hashicorp/terraform/blob/2fe5976aec290f4b53f07534f4cde13f6d877a3f/helper/schema/resource.go#L33-L56) may help you avoid breaking changes, see [example](https://github.com/hashicorp/terraform/blob/351c6bed79abbb40e461d3f7d49fe4cf20bced41/builtin/providers/aws/resource_aws_route53_record_migrate.go) 55 - either way BCs should be clearly documented in special section of the Changelog 56 - Any BC must always receive at least one :+1: from HC employee prior to merge, two :+1:s are advisable 57 58 ### Examples of Breaking Changes 59 60 - https://github.com/hashicorp/terraform/pull/12396 61 - https://github.com/hashicorp/terraform/pull/13872 62 - https://github.com/hashicorp/terraform/pull/13752 63 64 ## Unsure? 65 66 If you're unsure about anything, ask in the committer's Slack channel. 67 68 ## New Providers 69 70 These will require :+1: and some extra effort from HC employee. 71 72 We expect all acceptance tests to be as self-sustainable as possible 73 to keep the bar for running any acceptance test low for anyone 74 outside of HashiCorp or core maintainers team. 75 76 We expect any test to run **in parallel** alongside any other test (even the same test). 77 To ensure this is possible, we need all tests to avoid sharing namespaces or using static unique names. 78 In rare occasions this may require the use of mutexes in the resource code. 79 80 ### New Remote-API-based provider (e.g. AWS, Google Cloud, PagerDuty, Atlas) 81 82 We will need some details about who to contact or where to register for a new account 83 and generally we can't merge providers before ensuring we have a way to test them nightly, 84 which usually involves setting up a new account and obtaining API credentials. 85 86 ### Local provider (e.g. MySQL, PostgreSQL, Kubernetes, Vault) 87 88 We will need either Terraform configs that will set up the underlying test infrastructure 89 (e.g. GKE cluster for Kubernetes) or Dockerfile(s) that will prepare test environment (e.g. MySQL) 90 and expose the endpoint for testing. 91