fix: align WP7-05 candidate record schema
Dada P0-A isolated Windows CI / validate-and-package (push) Failing after 2m30s
Dada P0-A isolated Windows CI / validate-and-package (push) Failing after 2m30s
This commit is contained in:
@@ -24,11 +24,11 @@ export function loadCandidateRecord(path) {
|
||||
if (!Array.isArray(record.browsers) || record.browsers.length !== 2) {
|
||||
return blocked('candidate_browser_record_incomplete');
|
||||
}
|
||||
const names = new Set(record.browsers.map((browser) => browser.name));
|
||||
if (names.size !== 2 || !names.has('Chrome') || !names.has('Edge')) {
|
||||
const brands = new Set(record.browsers.map((browser) => browser.brand));
|
||||
if (brands.size !== 2 || !brands.has('Google Chrome') || !brands.has('Microsoft Edge')) {
|
||||
return blocked('candidate_browser_pair_invalid');
|
||||
}
|
||||
if (record.windows?.build == null || !record.artifact?.sha256 || !record.fixed_port) {
|
||||
if (record.windows?.build == null || !record.candidate_package?.sha256 || !record.candidate_package?.fixed_port) {
|
||||
return blocked('candidate_identity_incomplete');
|
||||
}
|
||||
if (record.browsers.some((browser) => !browser.full_version || !browser.major)) {
|
||||
|
||||
Reference in New Issue
Block a user