From 83cef7adcabd0636bf44444df2d2a10047e7871d Mon Sep 17 00:00:00 2001 From: astone123 Date: Mon, 21 Aug 2023 08:51:32 -0600 Subject: [PATCH] update unit test, check linux-arm workflow [run ci] --- .circleci/workflows.yml | 2 +- scripts/unit/binary/get-published-artifacts-spec.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/workflows.yml b/.circleci/workflows.yml index f2678013730d..80d1164472bb 100644 --- a/.circleci/workflows.yml +++ b/.circleci/workflows.yml @@ -57,7 +57,7 @@ linuxArm64WorkflowFilters: &linux-arm64-workflow-filters - equal: [ 'update-v8-snapshot-cache-on-develop', << pipeline.git.branch >> ] - equal: [ 'chore/update_webpack_deps_to_latest_webpack4_compat', << pipeline.git.branch >> ] - equal: [ 'chore/bump_loaders_and_optimize_webpack', << pipeline.git.branch >> ] - - equal: [ 'bump-circle-cache', << pipeline.git.branch >> ] + - equal: [ 'astone123/fix-get-published-artifacts', << pipeline.git.branch >> ] - matches: pattern: /^release\/\d+\.\d+\.\d+$/ value: << pipeline.git.branch >> diff --git a/scripts/unit/binary/get-published-artifacts-spec.js b/scripts/unit/binary/get-published-artifacts-spec.js index 1097edf6cfd3..8dbf5e684146 100644 --- a/scripts/unit/binary/get-published-artifacts-spec.js +++ b/scripts/unit/binary/get-published-artifacts-spec.js @@ -19,11 +19,11 @@ describe('get-published-artifacts', () => { const getPipelineIdStub = sinon.stub(getPublishedArtifactsModule, 'getPipelineId').returns('abc123') const getWorkflowsStub = sinon.stub(getPublishedArtifactsModule, 'getWorkflows').returns([{ id: 'my-workflow', name: 'linux-x64', status: 'success' }]) - const getWorkflowJobsStub = sinon.stub(getPublishedArtifactsModule, 'getWorkflowJobs').returns([{ name: 'publish-binary', job_number: 2 }]) + const getWorkflowJobsStub = sinon.stub(getPublishedArtifactsModule, 'getWorkflowJobs').returns([{ name: 'linux-amd-publish-binary', job_number: 2 }]) const getJobArtifactsStub = sinon.stub(getPublishedArtifactsModule, 'getJobArtifacts').returns(mockArtifacts) const downloadArtifactStub = sinon.stub(getPublishedArtifactsModule, 'downloadArtifact') - await getPublishedArtifactsModule.run(['--pipelineInfo', 'foo']) + await getPublishedArtifactsModule.run(['--pipelineInfo', 'foo', '--platformKey', 'linux-x64']) expect(getPipelineIdStub).to.have.been.calledWith('foo') expect(getWorkflowsStub).to.have.been.calledWith('abc123')