Skip to content

(PC-33026)[API] feat: Better typing for YearlyAggregatedRevenueModel … #13523

(PC-33026)[API] feat: Better typing for YearlyAggregatedRevenueModel …

(PC-33026)[API] feat: Better typing for YearlyAggregatedRevenueModel … #13523

Triggered via push November 22, 2024 16:34
Status Failure
Total duration 17m 22s
Artifacts 6
pcapi init job
38s
pcapi init job
Check changes in folders
32s
Check changes in folders
Update Jira issue  /  issue-number
34s
Update Jira issue / issue-number
Tests pro  /  ...  /  Style quality check
39s
Tests pro / Type check / Quality check / Style quality check
Tests pro  /  Unit tests
10m 27s
Tests pro / Unit tests
[pcapi] build docker image.  /  Build pcapi:ea3f7de293074d41b3e87a74437be1af23770b29
2m 22s
[pcapi] build docker image. / Build pcapi:ea3f7de293074d41b3e87a74437be1af23770b29
[pcapi-tests] build docker image.  /  Build pcapi-tests:ea3f7de293074d41b3e87a74437be1af23770b29
3m 51s
[pcapi-tests] build docker image. / Build pcapi-tests:ea3f7de293074d41b3e87a74437be1af23770b29
[pcapi-console] build docker image.  /  Build pcapi-console:ea3f7de293074d41b3e87a74437be1af23770b29
3m 43s
[pcapi-console] build docker image. / Build pcapi-console:ea3f7de293074d41b3e87a74437be1af23770b29
Deploy Storybook  /  Build and deploy Storybook
1m 16s
Deploy Storybook / Build and deploy Storybook
Tests API documentation  /  Check API documentation can be built
Tests API documentation / Check API documentation can be built
Deploy maintenance site  /  Deploy maintenance site to bucket
Deploy maintenance site / Deploy maintenance site to bucket
Ping data team on slack  /  Send slack notification
Ping data team on slack / Send slack notification
Update Jira issue  /  update-jira-issues
40s
Update Jira issue / update-jira-issues
Reset cache on master on dependency update  /  Update API Client template
15s
Reset cache on master on dependency update / Update API Client template
Tests pro E2E  /  E2E tests and notifications
10m 12s
Tests pro E2E / E2E tests and notifications
Matrix: Test api / Pytest
Push pcapi-console docker image to registry  /  Push pcapi-console
1m 55s
Push pcapi-console docker image to registry / Push pcapi-console
Push pcapi docker image to registry  /  Push pcapi
1m 1s
Push pcapi docker image to registry / Push pcapi
Deploy to ops  /  Deploy api
Deploy to ops / Deploy api
Deploy to ops  /  ...  /  check-image-resizing-deployed-version
Deploy to ops / Deploy image-resizing EHP / check-image-resizing-deployed-version
Deploy to ops  /  ...  /  check-image-resizing-deployed-version
Deploy to ops / Deploy image-resizing production / check-image-resizing-deployed-version
Deploy to testing  /  Deploy api
Deploy to testing / Deploy api
Deploy to testing  /  ...  /  check-image-resizing-deployed-version
Deploy to testing / Deploy image-resizing EHP / check-image-resizing-deployed-version
Deploy to testing  /  ...  /  check-image-resizing-deployed-version
Deploy to testing / Deploy image-resizing production / check-image-resizing-deployed-version
Deploy to ops  /  Deploy api doc on firebase
Deploy to ops / Deploy api doc on firebase
Deploy to ops  /  ...  /  deploy_on_firebase
Deploy to ops / Deploy pro / deploy_on_firebase
Deploy to ops  /  ...  /  deploy_on_firebase
Deploy to ops / Deploy pro on testing live channel / deploy_on_firebase
Deploy to ops  /  apply Algolia settings
Deploy to ops / apply Algolia settings
Deploy to ops  /  ...  /  Check folder changes
Deploy to ops / Deploy image-resizing EHP / Check if folder changed / Check folder changes
Deploy to ops  /  ...  /  Check folder changes
Deploy to ops / Deploy image-resizing production / Check if folder changed / Check folder changes
Deploy to testing  /  Deploy api doc on firebase
Deploy to testing / Deploy api doc on firebase
Deploy to testing  /  ...  /  deploy_on_firebase
Deploy to testing / Deploy pro / deploy_on_firebase
Deploy to testing  /  ...  /  deploy_on_firebase
Deploy to testing / Deploy pro on testing live channel / deploy_on_firebase
Deploy to testing  /  apply Algolia settings
Deploy to testing / apply Algolia settings
Deploy to testing  /  ...  /  Check folder changes
Deploy to testing / Deploy image-resizing EHP / Check if folder changed / Check folder changes
Deploy to testing  /  ...  /  Check folder changes
Deploy to testing / Deploy image-resizing production / Check if folder changed / Check folder changes
Deploy to ops  /  ...  /  Deploy image resizing
Deploy to ops / Deploy image-resizing EHP / Deploy image resizing
Deploy to ops  /  ...  /  Deploy image resizing
Deploy to ops / Deploy image-resizing production / Deploy image resizing
Deploy to testing  /  ...  /  Deploy image resizing
Deploy to testing / Deploy image-resizing EHP / Deploy image resizing
Deploy to testing  /  ...  /  Deploy image resizing
Deploy to testing / Deploy image-resizing production / Deploy image resizing
Slack notification
5s
Slack notification
Fit to window
Zoom out
Zoom in

Annotations

7 errors, 6 warnings, and 2 notices
Tests pro / Type check / Quality check / Style quality check
Type '{ [x: string]: { revenue?: undefined; expectedRevenue?: undefined; } | { revenue: { individual: number; collective?: undefined; total?: undefined; }; expectedRevenue: { individual: number; collective?: undefined; total?: undefined; }; } | { ...; } | { ...; }; }' is not assignable to type 'Record<string, AggregatedRevenue | Record<string, null>>'.
Tests pro / Type check / Quality check / Style quality check
Property 'total' does not exist on type 'CollectiveAndIndividualRevenue | CollectiveRevenue | IndividualRevenue | null'.
Tests pro / Type check / Quality check / Style quality check
Property 'individual' does not exist on type 'CollectiveAndIndividualRevenue | CollectiveRevenue | IndividualRevenue | null'.
Tests pro / Type check / Quality check / Style quality check
Property 'collective' does not exist on type 'CollectiveAndIndividualRevenue | CollectiveRevenue | IndividualRevenue | null'.
Tests pro / Type check / Quality check / Style quality check
Type 'CollectiveAndIndividualRevenue | CollectiveRevenue | IndividualRevenue | null' is not assignable to type 'CollectiveAndIndividualRevenue | CollectiveRevenue | IndividualRevenue'.
Tests pro / Type check / Quality check / Style quality check
Type 'CollectiveAndIndividualRevenue | CollectiveRevenue | IndividualRevenue | null' is not assignable to type 'CollectiveAndIndividualRevenue | CollectiveRevenue | IndividualRevenue'.
Tests pro / Type check / Quality check / Style quality check
Process completed with exit code 1.
Update Jira issue / issue-number
The following actions use a deprecated Node.js version and will be forced to run on node20: atlassian/gajira-cli@master, atlassian/gajira-login@master, atlassian/gajira-find-issue-key@master. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Tests pro / Type check / Quality check / Style quality check
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Update Jira issue / update-jira-issues
The following actions use a deprecated Node.js version and will be forced to run on node20: atlassian/gajira-cli@master, atlassian/gajira-login@master. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Tests pro / Unit tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Tests pro E2E / E2E tests and notifications
The following actions use a deprecated Node.js version and will be forced to run on node20: technote-space/workflow-conclusion-action@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Slack notification
The following actions use a deprecated Node.js version and will be forced to run on node20: technote-space/workflow-conclusion-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test api / Quality checks
Running tests api with europe-west1-docker.pkg.dev/passculture-infra-prod/pass-culture-artifact-registry/pcapi-tests:ea3f7de293074d41b3e87a74437be1af23770b29
Tests pro E2E / E2E tests and notifications
Running e2e-tests with europe-west1-docker.pkg.dev/passculture-infra-prod/pass-culture-artifact-registry/pcapi:ea3f7de293074d41b3e87a74437be1af23770b29

Artifacts

Produced during runtime
Name Size
pass-culture~pass-culture-main~939OJK.dockerbuild
158 KB
pass-culture~pass-culture-main~MYVF94.dockerbuild
92.6 KB
pass-culture~pass-culture-main~WIO9D0.dockerbuild
84.7 KB
pcapi-console-ea3f7de293074d41b3e87a74437be1af23770b29.tar
482 MB
pcapi-ea3f7de293074d41b3e87a74437be1af23770b29.tar
299 MB
pcapi-tests-ea3f7de293074d41b3e87a74437be1af23770b29.tar
529 MB