Skip to content

Add tests:hive automatically#10563

Merged
findepi merged 1 commit intotrinodb:masterfrom
findepi:findepi/add-tests-hive-automatically-a8d83a
Jan 13, 2022
Merged

Add tests:hive automatically#10563
findepi merged 1 commit intotrinodb:masterfrom
findepi:findepi/add-tests-hive-automatically-a8d83a

Conversation

@findepi
Copy link
Copy Markdown
Member

@findepi findepi commented Jan 12, 2022

The labeler workflow is courtesy of Ashhar.

Co-authored-by: Ashhar Hasan ashhar.hasan@starburstdata.com

@findepi
Copy link
Copy Markdown
Member Author

findepi commented Jan 12, 2022

Tested on my fork -- findepi#1 .

Copy link
Copy Markdown
Member

@homar homar left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

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

Thanks.

A question whether this works as expected.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Note that labels get added "after" the PR gets created and hence the CI run won't see the labels most probably - can we test this? (subsequent pushes would see the labels though).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, this is what i expect. This automation doesn't free us from thinking.

However, oftentimes PRs do involve multiple pushes, so this may free us from doing the thing manually.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There's still one issue I see - a reviewer won't know whether the hive tests actually ran just by looking at presence of label.
I'm fine with merging this provided people know of the behaviour to expect from the label.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure if it is already discussed, what if we use workflow_run so that we could run this workflow could add labels and ci could use them ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

There's still one issue I see - a reviewer won't know whether the hive tests actually ran just by looking at presence of label.

If you see a label added after the PR is created, you must not assume it was observed by the workflow run.

But, if there was a push since label was added, then you can assume it's observed

@findepi findepi requested a review from hashhar January 12, 2022 16:38
Copy link
Copy Markdown
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

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

LGTM % comments

The labeler workflow is courtesy of Ashhar.

Co-authored-by: Ashhar Hasan <ashhar.hasan@starburstdata.com>
@findepi findepi force-pushed the findepi/add-tests-hive-automatically-a8d83a branch from 9f3306f to 2cae5c9 Compare January 13, 2022 09:11
@findepi findepi merged commit 6e8e4c2 into trinodb:master Jan 13, 2022
@findepi findepi deleted the findepi/add-tests-hive-automatically-a8d83a branch January 13, 2022 09:12
@github-actions github-actions bot added this to the 369 milestone Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants