Release agent@1.1.1: stats during jobs, its real version
Stats go every minute on their own timer, also while a job runs (before, a 30-minute install made the Hub alert that the server was down). The version constant said 1.0.1 in 1.1.0; a test keeps it equal to package.json now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -49,3 +49,12 @@ describe("crosscode arguments for each job", () => {
|
||||
expect(crosscodeArgs(parsed({ type: "update-agent", args: { version: "agent@1.0.1" } }))).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
describe("the agent's version", () => {
|
||||
it("is the one in package.json (it's what the Hub shows and compares)", () => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
const pkg = require("../package.json") as { version: string };
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
expect((require("../src/stats") as { AGENT_VERSION: string }).AGENT_VERSION).toBe(pkg.version);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user