Open jepler opened 3 months ago
The specific $GITHUB_SHA seems to have been a temporary merge commit created for building the PR; I pushed it to jepler/git_ref_value_pr9468 because it is now otherwise missing/unreachable as far as I can tell.
Hey, diffs between merge commits can get quite complex and the current implementation doesn't handle them very well. Here, the runs should have been scheduled according to the changes introduced in the 9.1.x
branch since it diverged. Hopefully, the following sheds some light on this:
env_var | commit | ref |
---|---|---|
BASE_SHA |
https://github.com/adafruit/circuitpython/commit/901dd228cbdb2069e66fae8c2108d44466ab1e7f | 9.1.x |
GITHUB_SHA~ |
https://github.com/adafruit/circuitpython/commit/bd834182c43e46606124ce63a604afd91b6568cf | main |
HEAD_SHA |
https://github.com/adafruit/circuitpython/commit/d335a10574a1eaf78c94e566399d96150f269636 | main ← 9.1.x |
GITHUB_SHA |
https://github.com/adafruit/circuitpython/commit/7dd3bf81e44bfb73880cc34d418bf7ed09223bad | main ← (main ← 9.1.x) |
diff | variable | description |
---|---|---|
BASE_SHA...HEAD_SHA |
changed_files |
changes in main since 9.1.x was branched off |
GITHUB_SHA~...GITHUB_SHA |
other_files |
changes in 9.1.x since it was branched off |
In a typical pull request scenario, intersection_update
gives intersection of changed files between the following two sets:
head
and the last commit that had CI runs base
.Suppose a new file was added in the PR in an earlier commit but was removed in the current commit, any such files will be excluded by taking intersection of the two sets.
CircuitPython version
Code/REPL
Behavior
Should build many boards, but actually builds none
Description
Encountered while building https://github.com/adafruit/circuitpython/pull/9467
Additional information
I was unable to determine what the
intersection_update
call is intended to do but in this case it gives an empty set of changed files to consider:@microdev1 pinging because I hope you can enlighten and maybe address the problem.