Skip to content

[Tooling] Output changelog validation check into the PR automatically#596

Merged
deblasis merged 26 commits intomainfrom
feat/changelog_auto_review
Mar 21, 2023
Merged

[Tooling] Output changelog validation check into the PR automatically#596
deblasis merged 26 commits intomainfrom
feat/changelog_auto_review

Conversation

@deblasis
Copy link
Copy Markdown
Contributor

@deblasis deblasis commented Mar 20, 2023

Description

This PR improves DevX by outputting the result of a changelog validation into the PR and requesting changes:

image

Once the check is successful, the automatically added review comments are dismissed

The commits of this PR are also included in #577

Issue

None because developed in < 4h

Type of change

Please mark the relevant option(s):

  • New feature, functionality or library
  • Bug fix
  • Code health or cleanup
  • Major breaking change
  • Documentation
  • Other

List of changes

  • Updated changelog-verify.yaml to automatically review / dismiss changelog specific reviews

Testing

  • make develop_test
  • LocalNet w/ all of the steps outlined in the README

Required Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added, or updated, godoc format comments on touched members (see: tip.golang.org/doc/comment)
  • I have tested my changes using the available tooling
  • I have updated the corresponding CHANGELOG

If Applicable Checklist

  • I have updated the corresponding README(s); local and/or global
  • I have added tests that prove my fix is effective or that my feature works
  • I have added, or updated, mermaid.js diagrams in the corresponding README(s)
  • I have added, or updated, documentation and mermaid.js diagrams in shared/docs/* if I updated shared/*README(s)

@deblasis deblasis added the tooling tooling to support development, testing et al label Mar 20, 2023
@deblasis deblasis self-assigned this Mar 20, 2023
@deblasis deblasis marked this pull request as ready for review March 20, 2023 15:45
@deblasis deblasis requested review from Olshansk and okdas March 20, 2023 15:47
Copy link
Copy Markdown
Collaborator

@Olshansk Olshansk left a comment

Choose a reason for hiding this comment

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

This is what you call automation.

REALLY REALLY 🆒

needs: validate
if: always()
steps:
- name: Verify changelogs KO
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

KO?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

"KO" 🥊: knock-out, usually used to define a bad outcome, contrary to the "OK"

Am I that old? Mmmmmmkay!

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Haha, that's what I had assumed but had to make sure.

I used to box when I was a kid :)

uses: actions/github-script@v5
with:
script: |
const result = `<!-- validate_review -->The changelog validation failed with the following output:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should we use validate_review_chaenlogs as the unique identifier?

I can see us following this pattern for other times of comments as well

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Side note: I'm on the waitlist for https://reviewpad.com/openai-waitlist

Copy link
Copy Markdown
Contributor Author

@deblasis deblasis Mar 21, 2023

Choose a reason for hiding this comment

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

Cool! (I think reviews are going to get quite noisy, I am curious tho)

Re: ChatGPT... So far my experience hasn't been great, I had a couple of hiccups with this PR and I asked for help... the results made sense but just didn't work. I'll keep trying, if anything, it could be inspiration

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Keep trying. It's just a new skill we have to learn.

@deblasis deblasis requested a review from Olshansk March 21, 2023 00:28
Copy link
Copy Markdown
Collaborator

@Olshansk Olshansk left a comment

Choose a reason for hiding this comment

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

Excited to take this for a match 🥊

@deblasis deblasis merged commit 8a8983e into main Mar 21, 2023
@Olshansk Olshansk deleted the feat/changelog_auto_review branch March 21, 2023 03:48
bryanchriswhite added a commit that referenced this pull request Mar 21, 2023
* pokt/main:
  [Tooling] Output changelog validation check into the PR automatically (#596)
  [debug client] Limit key import concurrency to 4 (#591)
  [SHARED][CLI] adds message routing type field to debug messages and CLI commands (#561)
dylanlott pushed a commit that referenced this pull request Mar 24, 2023
…#596)

## Description

This PR improves DevX by outputting the result of a changelog validation
into the PR and requesting changes:


![image](https://user-images.githubusercontent.com/29378614/226392565-f20c77c2-19c7-42f7-8305-c11592f95f09.png)

Once the check is successful, the automatically added review comments
are dismissed

The commits of this PR are also included in #577 

## Issue

None because developed in < 4h

## Type of change

Please mark the relevant option(s):

- [x] New feature, functionality or library
- [ ] Bug fix
- [ ] Code health or cleanup
- [ ] Major breaking change
- [ ] Documentation
- [ ] Other <!-- add details here if it a different type of change -->

## List of changes

- Updated changelog-verify.yaml to automatically review / dismiss
changelog specific reviews

## Testing

- [ ] `make develop_test`
- [ ]
[LocalNet](https://github.com/pokt-network/pocket/blob/main/docs/development/README.md)
w/ all of the steps outlined in the `README`

## Required Checklist

- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added, or updated, [`godoc` format
comments](https://go.dev/blog/godoc) on touched members (see:
[tip.golang.org/doc/comment](https://tip.golang.org/doc/comment))
- [ ] I have tested my changes using the available tooling
- [ ] I have updated the corresponding CHANGELOG

### If Applicable Checklist

- [ ] I have updated the corresponding README(s); local and/or global
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added, or updated,
[mermaid.js](https://mermaid-js.github.io) diagrams in the corresponding
README(s)
- [ ] I have added, or updated, documentation and
[mermaid.js](https://mermaid-js.github.io) diagrams in `shared/docs/*`
if I updated `shared/*`README(s)

---------

Signed-off-by: Alessandro De Blasis <alex@deblasis.net>
dylanlott pushed a commit to dylanlott/pocket that referenced this pull request Mar 24, 2023
…pokt-network#596)

## Description

This PR improves DevX by outputting the result of a changelog validation
into the PR and requesting changes:


![image](https://user-images.githubusercontent.com/29378614/226392565-f20c77c2-19c7-42f7-8305-c11592f95f09.png)

Once the check is successful, the automatically added review comments
are dismissed

The commits of this PR are also included in pokt-network#577 

## Issue

None because developed in < 4h

## Type of change

Please mark the relevant option(s):

- [x] New feature, functionality or library
- [ ] Bug fix
- [ ] Code health or cleanup
- [ ] Major breaking change
- [ ] Documentation
- [ ] Other <!-- add details here if it a different type of change -->

## List of changes

- Updated changelog-verify.yaml to automatically review / dismiss
changelog specific reviews

## Testing

- [ ] `make develop_test`
- [ ]
[LocalNet](https://github.com/pokt-network/pocket/blob/main/docs/development/README.md)
w/ all of the steps outlined in the `README`

## Required Checklist

- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added, or updated, [`godoc` format
comments](https://go.dev/blog/godoc) on touched members (see:
[tip.golang.org/doc/comment](https://tip.golang.org/doc/comment))
- [ ] I have tested my changes using the available tooling
- [ ] I have updated the corresponding CHANGELOG

### If Applicable Checklist

- [ ] I have updated the corresponding README(s); local and/or global
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added, or updated,
[mermaid.js](https://mermaid-js.github.io) diagrams in the corresponding
README(s)
- [ ] I have added, or updated, documentation and
[mermaid.js](https://mermaid-js.github.io) diagrams in `shared/docs/*`
if I updated `shared/*`README(s)

---------

Signed-off-by: Alessandro De Blasis <alex@deblasis.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling tooling to support development, testing et al

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants