-
Notifications
You must be signed in to change notification settings - Fork 144
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
Allow docs only tests, this time making them work #749
Conversation
Codecov Report
@@ Coverage Diff @@
## main #749 +/- ##
=======================================
Coverage 97.13% 97.13%
=======================================
Files 42 42
Lines 7929 7929
=======================================
Hits 7702 7702
Misses 227 227 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for sharing your solution!
docs/changes/749.bugfix.rst
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not affect users, so not sure if you need a change log.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was in doubt if to put it or not, but it might matter for contributors (I also updated the docs accordingly)
Co-authored-by: P. L. Lim <2090236+pllim@users.noreply.github.com>
Thanks for your review and the fixes @pllim ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't tried this in practice, but I cast an eye over it and it seems to basically make sense. A bit more documentation (a comment in the YAML) would be helpful to explain properly what's supposed to happen.
More generally, I'm not totally convinced that the extra complexity is worth it — I'm not regularly working with Stingray, but my bias is that CI is best left as simple as possible unless it's really causing a problem. That's partly an aesthetic judgement, and I fully defer to you as somebody who is regularly actually using this system!
smaller commits. Commits involving just the docs might use ``skip ci`` in | ||
their commit message to avoid running all the tests. | ||
smaller commits. Commits involving just the docs might use ``[docs only]`` in | ||
their commit message to avoid running all the tests. *Very* trivial commits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By my reading, the above is only checking the subject of the commit message (%s
), not the body. Consider pretty=format:'%B'
maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Or change this to something like “...in the first line of their commit message...”
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By my reading, above we are checking for doc
or skip-tests
, but here it says we looking for docs only
orskip ci
. I'm not actually sure if that's because I don't fully understand what's happening, or if the documentation and the implementation don't match.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I just used a more permissive regex than documented. Skip ci is handled by Github itself and does not need to be treated explicitly
…he regex slightly [docs only]
@jdswinbank thanks! |
No description provided.