[DRAFT] Restrict upload status changes #287
ci.yaml
on: pull_request_target
Sensitive jobs are safe to be run
1s
Sensitive jobs aren't labeled safe to be run
0s
Mark integration test as not run
4s
Matrix: Deploy to Kubernetes
Ready for merging
2s
Report if workflow failed
1m 42s
Annotations
6 errors and 21 warnings
sampleFileController > patchFile works correctly:
tests/api.v2/controllers/sampleFileController.test.js#L164
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: "sampleId", "features10x", "uploaded"
Received: undefined, "uploaded"
Number of calls: 1
at Object.<anonymous> (/home/runner/work/api/api/tests/api.v2/controllers/sampleFileController.test.js:181:51)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
|
tests for experiment route > Patching a file upload status results in a successful response:
tests/api.v2/routes/sampleFile.test.js#L94
Error: expected 200 "OK", got 405 "Method Not Allowed"
at Test.Object.<anonymous>.Test._assertStatus (/home/runner/work/api/api/node_modules/supertest/lib/test.js:268:12)
at Test.Object.<anonymous>.Test._assertFunction (/home/runner/work/api/api/node_modules/supertest/lib/test.js:283:11)
at Test.Object.<anonymous>.Test.assert (/home/runner/work/api/api/node_modules/supertest/lib/test.js:173:18)
at Server.localAssert (/home/runner/work/api/api/node_modules/supertest/lib/test.js:131:12)
at Object.onceWrapper (events.js:519:28)
at Server.emit (events.js:400:28)
at Server.emit (domain.js:475:12)
at emitCloseNT (net.js:1677:8)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
|
tests for experiment route > Patching a file upload status fails if body is invalid:
tests/api.v2/routes/sampleFile.test.js#L122
Error: expected 400 "Bad Request", got 405 "Method Not Allowed"
at Test.Object.<anonymous>.Test._assertStatus (/home/runner/work/api/api/node_modules/supertest/lib/test.js:268:12)
at Test.Object.<anonymous>.Test._assertFunction (/home/runner/work/api/api/node_modules/supertest/lib/test.js:283:11)
at Test.Object.<anonymous>.Test.assert (/home/runner/work/api/api/node_modules/supertest/lib/test.js:173:18)
at Server.localAssert (/home/runner/work/api/api/node_modules/supertest/lib/test.js:131:12)
at Object.onceWrapper (events.js:519:28)
at Server.emit (events.js:400:28)
at Server.emit (domain.js:475:12)
at emitCloseNT (net.js:1677:8)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
|
model/Sample > updateUploadStatus works correctly if valid params are passed:
tests/api.v2/model/SampleFile.test.js#L54
Error: expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
Object {
- "upload_status": "fileNotFound",
+ "upload_status": "features10x",
},
Number of calls: 1
at Object.<anonymous> (/home/runner/work/api/api/tests/api.v2/model/SampleFile.test.js:63:34)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
|
Build Docker container
Process completed with exit code 254.
|
Run tests
Some jest tests failed.
|
Mark integration test as not run
The following actions uses node12 which is deprecated and will be forced to run on node16: tzkhan/pr-update-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Mark integration test as not run
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Mark integration test as not run
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Mark integration test as not run
No updates were made to PR title
|
Mark integration test as not run
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Build Docker container
The following actions uses node12 which is deprecated and will be forced to run on node16: docker/build-push-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Build Docker container
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Build Docker container
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Build Docker container
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Build Docker container
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Build Docker container
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Build Docker container
Your docker password is not masked. See https://github.com/aws-actions/amazon-ecr-login#docker-credentials for more information.
|
Run tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-node@v2, c-hive/gha-npm-cache@v1, mattallty/jest-github-action@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Run tests
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Run tests
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Run tests
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Run tests
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Deploy to Kubernetes (production)
Your docker password is not masked. See https://github.com/aws-actions/amazon-ecr-login#docker-credentials for more information.
|
Deploy to Kubernetes (staging)
Your docker password is not masked. See https://github.com/aws-actions/amazon-ecr-login#docker-credentials for more information.
|
Deploy to Kubernetes (develop)
Your docker password is not masked. See https://github.com/aws-actions/amazon-ecr-login#docker-credentials for more information.
|
Report if workflow failed
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|