acceptable-guitar-79854
11/03/2020, 3:28 PM./pants --changed-diffspec=origin/main --changed-dependees=transitive test
and I have a failing test
1. first time CI runs -> fail
2. I trigger manually another build / push something else unrelated -> pass
Is there a way to tell pants to run over "changes + transitive dependees + earlier failures"?
Thank youwooden-thailand-8386
11/03/2020, 4:17 PM--changed-since
instead of --changed-diffspec
wooden-thailand-8386
11/03/2020, 4:18 PM--changed-since
you get:
Calculate changes since this Git spec (commit range/SHA/ref).
and when using `--changed-diffspec`:
Calculate changes contained within a given Git spec (commit range/SHA/ref).
wooden-thailand-8386
11/03/2020, 4:20 PM--changed-diffspec
you’re only comparing your current commit (or repo state) to that specific one… --changed-since
will get all the differences from all commits since origin/main
, in your case.acceptable-guitar-79854
11/03/2020, 4:22 PMacceptable-guitar-79854
11/03/2020, 4:22 PMacceptable-guitar-79854
11/03/2020, 4:23 PMwooden-thailand-8386
11/03/2020, 4:23 PM--changed-since
here on my CIs and I always point to the branch that I’m trying to merge it to and the behavior that I get is what you’re pursuing.acceptable-guitar-79854
11/03/2020, 4:24 PMwooden-thailand-8386
11/03/2020, 4:24 PMacceptable-guitar-79854
11/03/2020, 4:25 PMwooden-thailand-8386
11/03/2020, 4:25 PMacceptable-guitar-79854
11/03/2020, 4:27 PMwooden-thailand-8386
11/03/2020, 4:28 PM---dev----------------
\___branchA---------
\___branchB---
so if branchA
when compared to dev
fails bc of changes and then you create a branchB
off of branchA
and is comparing those directly to dev
then yeah, you’ll still get those “failing cases” but if you’re only comparing branchB
with branchA
then you might not see it unless those same files changes again and the error is persistent.acceptable-guitar-79854
11/03/2020, 4:29 PMwooden-thailand-8386
11/03/2020, 4:29 PMacceptable-guitar-79854
11/03/2020, 4:29 PMwooden-thailand-8386
11/03/2020, 4:30 PMcache
won’t matter bc I just tested here and my tests are still failing even after so many commits (locally) lmaoacceptable-guitar-79854
11/03/2020, 4:30 PMacceptable-guitar-79854
11/03/2020, 4:31 PMwooden-thailand-8386
11/03/2020, 4:31 PMpants
too so take it with a grain of salt, the true knowledgeable folks might not show up bc is a holiday to them today.acceptable-guitar-79854
11/03/2020, 4:44 PMwitty-crayon-22786
11/03/2020, 8:04 PMwitty-crayon-22786
11/03/2020, 8:04 PMwitty-crayon-22786
11/03/2020, 8:05 PM--changed
against that.acceptable-guitar-79854
11/03/2020, 11:37 PM