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

ci: force /lgtm v2-freeze on any v2 API changes. #11092

Merged
merged 21 commits into from
May 8, 2020

Conversation

htuch
Copy link
Member

@htuch htuch commented May 6, 2020

To assist the API shepherds in ensuring that no unintentional v2 freezes creep in, this PR extends
our forked ownerscheck.star to force a "/lgtm v2-freeze" to be issued in order for v2 API changes to
merge.

The changes made to ownerscheck.star are:

  • Replace path prefix matching with regex matching.
  • Allow global approvers to be opted out of; we don't want a PR "approve" stamp to allow merges
    without an explicit v2 related LGTM.
  • Support custom GitHub status labels for each spec.

Risk level: Low (CI only)
Testing: Manual interactions with RK in #11092

Signed-off-by: Harvey Tuch [email protected]

To assist the API shepherds in ensuring that no unintentional v2 freezes creep in, this PR extends
our forked ownerscheck.star to force a "/lgtm v2-freeze" to be issued in order for v2 API changes to
merge.

The changes made to ownerscheck.star are:
* Replace path prefix matching with regex matching.
* Allow global approvers to be opted out of; we don't want a PR "approve" stamp to allow merges
  without an explicit v2 related LGTM.

Signed-off-by: Harvey Tuch <[email protected]>
@htuch
Copy link
Member Author

htuch commented May 6, 2020

/rk-bless

@repokitteh-read-only
Copy link

This PR has been blessed, meaning its repokitteh changes are in effect in this PR.

😽

Caused by: #11092 was labeled by repokitteh[bot].

see: more, trace.

htuch added 2 commits May 6, 2020 17:06
Signed-off-by: Harvey Tuch <[email protected]>
Signed-off-by: Harvey Tuch <[email protected]>
@htuch
Copy link
Member Author

htuch commented May 6, 2020

/rk-bless

@repokitteh-read-only
Copy link

🙀 Error while processing event:

evaluation error
error: github.com/envoyproxy/envoy/ci/repokitteh/modules/ownerscheck.star:50:42: undefined: text
😽

Caused by: a #11092 (comment) was created by @htuch.

see: more, trace.

Signed-off-by: Harvey Tuch <[email protected]>
@htuch
Copy link
Member Author

htuch commented May 6, 2020

/rk-bless

htuch added 2 commits May 6, 2020 17:11
Signed-off-by: Harvey Tuch <[email protected]>
Signed-off-by: Harvey Tuch <[email protected]>
@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy[\w/]*/(v1alpha\d?|v1|v2alpha\d?|v2))|(api/envoy/type/(matcher/)?\w+.proto).
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to api/.
CC @envoyproxy/api-watchers: FYI only for changes made to api/.

😽

Caused by: #11092 was synchronize by htuch.

see: more, trace.

@htuch
Copy link
Member Author

htuch commented May 6, 2020

/lgtm api

@repokitteh-read-only repokitteh-read-only bot removed the api label May 6, 2020
Signed-off-by: Harvey Tuch <[email protected]>
@htuch
Copy link
Member Author

htuch commented May 6, 2020

/rk-bless

htuch added 2 commits May 6, 2020 17:36
Signed-off-by: Harvey Tuch <[email protected]>
Signed-off-by: Harvey Tuch <[email protected]>
@htuch
Copy link
Member Author

htuch commented May 6, 2020

/lgtm api

@repokitteh-read-only repokitteh-read-only bot removed the api label May 6, 2020
Signed-off-by: Harvey Tuch <[email protected]>
@htuch
Copy link
Member Author

htuch commented May 6, 2020

/rk-bless

htuch added 4 commits May 6, 2020 17:42
Signed-off-by: Harvey Tuch <[email protected]>
Signed-off-by: Harvey Tuch <[email protected]>
Signed-off-by: Harvey Tuch <[email protected]>
Signed-off-by: Harvey Tuch <[email protected]>
@htuch
Copy link
Member Author

htuch commented May 6, 2020

@envoyproxy/api-shepherds can I get a test approval? Not planning on merging yet.

htuch added 2 commits May 6, 2020 17:53
Signed-off-by: Harvey Tuch <[email protected]>
Signed-off-by: Harvey Tuch <[email protected]>
lizan
lizan previously approved these changes May 6, 2020
@repokitteh-read-only repokitteh-read-only bot removed the api label May 6, 2020
@lizan
Copy link
Member

lizan commented May 6, 2020

/lgtm v2-freeze

@htuch
Copy link
Member Author

htuch commented May 6, 2020

/rk-bless

Signed-off-by: Harvey Tuch <[email protected]>
Signed-off-by: Harvey Tuch <[email protected]>
@htuch
Copy link
Member Author

htuch commented May 6, 2020

/rk-bless

@htuch
Copy link
Member Author

htuch commented May 6, 2020

@itayd @envoyproxy/api-shepherds this is now ready for review, thanks!

@htuch htuch changed the title [WiP] ci: force /lgtm v2-freeze on any v2 API changes. ci: force /lgtm v2-freeze on any v2 API changes. May 6, 2020
ci/repokitteh/modules/ownerscheck.star Outdated Show resolved Hide resolved
ci/repokitteh/modules/ownerscheck.star Show resolved Hide resolved
ci/repokitteh/modules/ownerscheck.star Show resolved Hide resolved
ci/repokitteh/modules/ownerscheck.star Outdated Show resolved Hide resolved
Signed-off-by: Harvey Tuch <[email protected]>
@htuch
Copy link
Member Author

htuch commented May 7, 2020

/rk-bless

@htuch htuch merged commit 9eeaa46 into envoyproxy:master May 8, 2020
@htuch htuch deleted the v2-freeze-rk branch May 8, 2020 20:50
htuch added a commit to htuch/envoy that referenced this pull request May 8, 2020
The **spec was dropped in envoyproxy#11092 when building the struct to pass around. This lost the owner info,
resulting in errors such as
https://prod.repokitteh.app/traces/ui/envoyproxy/envoy/595f3d80-9170-11ea-9312-ad19ced22be2.

Signed-off-by: Harvey Tuch <[email protected]>
htuch added a commit that referenced this pull request May 10, 2020
The **spec was dropped in #11092 when building the struct to pass around. This lost the owner info,
resulting in errors such as
https://prod.repokitteh.app/traces/ui/envoyproxy/envoy/595f3d80-9170-11ea-9312-ad19ced22be2.

Signed-off-by: Harvey Tuch <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants