By collecting the the commits in to a set, we can give an indication
in the test runner how many jobs are going to be generated and
the overall progress of the lava job submissions.
The same commit hash may be present in multiple branches, using a set
prevents double checking the same hash twice.