Blame a GDELT export only while GDELT answers, and fix the review's notes

An export is given up on (never published, unreadable, or failing three
times) only while GDELT itself answers: its list of exports read, or
another export of the same round read. An outage that answers 404, or junk,
for everything now gives up on nothing, and a failing file earns one strike
a round rather than three within the first seconds' rounds.

Docs: News's share token is 9; territories without a country code are named
as themselves too; the changelog fragment credits one pull request. Unused
exports dropped from the rules and stale scaffolding from the ledger tests.
This commit is contained in:
Denis Groshev committed 2026-11-06 00:45:33 +01:00
1 parent 66ed0386a6
commit 1e78ac931c
9 files changed
+107 -40

No files matched your search

+3 -11
View File
@@ -290,11 +290,7 @@ test('PR B manually replaces provisional 00 with 01 after PR A publishes 00', ()
test('allocation batches cross the last digit and base-36 pair boundaries in order', () => {
// News holds the last digit, 9: the ledger has no free digit left.
const digitRows = [];
const allDigits = parseLayerStateTokenReservations([
...reservationRows,
...digitRows,
]);
const allDigits = parseLayerStateTokenReservations(reservationRows);
const beforeNine = { ...allDigits };
delete beforeNine.news;
assert.equal(
@@ -342,24 +338,20 @@ test('allocation batches cross the last digit and base-36 pair boundaries in ord
test('an isolated valid two-character fixture round-trips an l field beyond the old 64-character cap', async () => {
const cwd = mkdtempSync(path.join(tmpdir(), 'gev-layer-token-width-'));
try {
// News holds the last digit: no prior digit to fill.
const priorDigits = [];
// News holds the last digit: the fixture's layers start at pairs.
const fixtureLayers = ['00', '01', '02', '03'].map((token) => ({
id: `qa-layer-${token}`,
token,
}));
const fixtureRows = [
...reservationRows,
...priorDigits,
...fixtureLayers.map(({ id, token }) => [id, token]),
];
const fixtureModule = writeCodecFixture(cwd, fixtureRows, fixtureLayers);
const codec = await import(pathToFileURL(fixtureModule));
assert.equal(codec.validateLayerStateRegistry(), true);
assert.equal(
nextLayerStateToken(
parseLayerStateTokenReservations([...reservationRows, ...priorDigits]),
),
nextLayerStateToken(parseLayerStateTokenReservations(reservationRows)),
'00',
);
assert.equal(