You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description / Steps to reproduce / Feature proposal
When the commit message of a PR does not adhere to the commit message guideline, Travis for other tests are still trying to run. I've encountered a few times in some community PRs.
Question: I'm wondering if there's any mechanism to make the Travis CI failed right away in this case instead of trying to finish running all the tests.
Alternatively, when committing, I believe husky will tell us if the commit message does not adhere to our commit message guideline. Perhaps we can make the error more prominent, if possible?
@strongloop/loopback-maintainers , thoughts?
The text was updated successfully, but these errors were encountered:
The first sequence runs commit linter only. If it fails then the build is aborted.
The first sequence runs all other jobs in parallel, no change from today.
The downside of such configuration is that successful builds will take longer to complete, because the commit linter is no longer executed in parallel with other jobs. Personally, I am reluctant to slow down successful builds.
Also conceptually, even if the commit message is malformed, I often want to see the actual npm test output, so that we can discuss the code changes regardless of metadata like commit messages. Commit message can be usually cleaned up by ourselves, so it's not a big deal if they are not correct on the first try (IMO).
If we eventually jump on Azure Pipelines (see #3161), then it may be easier to show a failed check for commit linters, because AFAIK Azure Pipelines report one GH check for each job in the build matrix (as opposed to Travis).
This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository. This issue will be closed within 30 days of being stale.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.
Description / Steps to reproduce / Feature proposal
When the commit message of a PR does not adhere to the commit message guideline, Travis for other tests are still trying to run. I've encountered a few times in some community PRs.
Question: I'm wondering if there's any mechanism to make the Travis CI failed right away in this case instead of trying to finish running all the tests.
Alternatively, when committing, I believe
husky
will tell us if the commit message does not adhere to our commit message guideline. Perhaps we can make the error more prominent, if possible?@strongloop/loopback-maintainers , thoughts?
The text was updated successfully, but these errors were encountered: