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

Require tests for feature/bugfix #426

Closed
wants to merge 1 commit into from
Closed

Require tests for feature/bugfix #426

wants to merge 1 commit into from

Conversation

fao89
Copy link
Member

@fao89 fao89 commented Sep 8, 2020

@pulpbot
Copy link
Member

pulpbot commented Sep 8, 2020

Attached issue: https://pulp.plan.io/issues/7437

@fao89 fao89 force-pushed the 7437 branch 2 times, most recently from efc78f2 to fbd286b Compare September 8, 2020 21:25
Comment on lines +24 to +18
REQUIRES_TEST=$(git diff --name-only $RANGE | grep -E 'feature|bugfix')
CONTAINS_TEST=$(git diff --name-only $RANGE | grep -E '^test_')
Copy link
Member

Choose a reason for hiding this comment

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

I think we should be testing this for each commit in the PR separately (Neccessary requirement for proper cherry-picking). Also i wished, this could deliver a warning instead of a failure, as it is a bit fuzzy by nature... (But that will remain a wish with current CI providers.).
Also I liked the first grep to be specific about files being in "/CHANGES", and maybe the second one expecting a comment like tests #1234 within the /pulp_file/tests directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants