05c7e605c01e595561c32690eb44a7512041e540 braney Wed Sep 23 09:34:08 2026 -0700 hubCheck: reject a bigBed type line that declares fewer than three fields, refs #36940 hgc already stops on "type bigBed 1" or "type bigBed 2", but hubCheck passed both, so a hub author only found out when a user clicked an item. Check the declared count against the minimum of three next to the existing check against the file's field count. A bare "type bigBed" does not reach this code and is unchanged. Adds a fieldCountTooFew test with bigBed 1 and bigBed 2 tracks. diff --git src/hg/utils/hubCheck/tests/expected/fieldCountTooFew.output.txt src/hg/utils/hubCheck/tests/expected/fieldCountTooFew.output.txt new file mode 100644 index 00000000000..96b6c9c5f7c --- /dev/null +++ src/hg/utils/hubCheck/tests/expected/fieldCountTooFew.output.txt @@ -0,0 +1,4 @@ +Found 3 problems: +Track "fieldTooFew1" declares 'type bigBed 1', but a bigBed has at least 3 fields (chrom, chromStart, chromEnd). Change the type line to match the file's field count, or leave the number off and the count is read from the file. +Track "fieldTooFew2" declares 'type bigBed 2', but a bigBed has at least 3 fields (chrom, chromStart, chromEnd). Change the type line to match the file's field count, or leave the number off and the count is read from the file. +warning: missing hub overview description page. Add a 'descriptionUrl hubDescription.html' line to hub.txt.