mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
feat(cron): expose run receipts and modularize execution
Return committed trigger IDs and add CLI wait and trigger-specific logs while preserving API, CLI, transaction, deduplication and unknown-result semantics. Move scheduling, lifecycle, settlement, queries and legacy adapters into back/cron; remove obsolete internal import paths and circular dependencies. Apply project formatting across the repository, cover CJS/MJS in formatting hooks, add prettier:check and require formatting checks in AGENTS.md. Validation: backend build; 1398 backend/frontend tests passed (17 platform skips); 327 CLI tests passed (6 platform skips); 670 files pass format checks.
This commit is contained in:
1 parent
77ece406ac
commit
c5458596c8
346 files changed
+32133
-11556
No files matched your search
@@ -60,10 +60,23 @@ test('mirror verification selects GNU timeout when the default is another implem
|
||||
assert.ok(realTimeout, 'The mirror script requires GNU timeout');
|
||||
const bin = path.join(tmp, 'bin');
|
||||
fs.mkdirSync(bin);
|
||||
fs.symlinkSync(execFileSync('which', [realTimeout], { encoding: 'utf8' }).trim(), path.join(bin, 'gnutimeout'));
|
||||
fs.symlinkSync(execFileSync('which', ['git'], { encoding: 'utf8' }).trim(), path.join(bin, 'git'));
|
||||
fs.symlinkSync(execFileSync('which', ['sort'], { encoding: 'utf8' }).trim(), path.join(bin, 'sort'));
|
||||
fs.writeFileSync(path.join(bin, 'timeout'), '#!/bin/sh\nif [ "$1" = --version ]; then echo "timeout (uutils coreutils)"; exit 0; fi\nexit 98\n', { mode: 0o755 });
|
||||
fs.symlinkSync(
|
||||
execFileSync('which', [realTimeout], { encoding: 'utf8' }).trim(),
|
||||
path.join(bin, 'gnutimeout'),
|
||||
);
|
||||
fs.symlinkSync(
|
||||
execFileSync('which', ['git'], { encoding: 'utf8' }).trim(),
|
||||
path.join(bin, 'git'),
|
||||
);
|
||||
fs.symlinkSync(
|
||||
execFileSync('which', ['sort'], { encoding: 'utf8' }).trim(),
|
||||
path.join(bin, 'sort'),
|
||||
);
|
||||
fs.writeFileSync(
|
||||
path.join(bin, 'timeout'),
|
||||
'#!/bin/sh\nif [ "$1" = --version ]; then echo "timeout (uutils coreutils)"; exit 0; fi\nexit 98\n',
|
||||
{ mode: 0o755 },
|
||||
);
|
||||
const args = [script, source, mirror, 'develop'];
|
||||
const result = spawnSync('/bin/bash', args, options({ PATH: bin }));
|
||||
assert.equal(result.status, 0, result.stderr + result.stdout);
|
||||
@@ -270,10 +283,7 @@ test('Gitee workflows verify both mirrors and do not gate image publication', ()
|
||||
JSON.stringify(backfill),
|
||||
/GITEE_TOKEN|git@gitee|sync-static|ssh-keyscan/,
|
||||
);
|
||||
for (const name of [
|
||||
'build-alpine',
|
||||
'build-debian',
|
||||
]) {
|
||||
for (const name of ['build-alpine', 'build-debian']) {
|
||||
assert.equal(workflow.jobs[name].needs, 'build-static');
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user