Skip to content

(PC-32149)[API] feat: implement ubble v2 verification retry #7585

(PC-32149)[API] feat: implement ubble v2 verification retry

(PC-32149)[API] feat: implement ubble v2 verification retry #7585

Triggered via pull request November 21, 2024 14:46
Status Failure
Total duration 14m 37s
Artifacts 6
Tests pro  /  ...  /  Style quality check
Tests pro / Type check / Quality check / Style quality check
Tests pro  /  Unit tests
Tests pro / Unit tests
[pcapi-tests] build docker image.  /  Build pcapi-tests:a857fd6202734631d3e0e8677dd8534010740663
3m 55s
[pcapi-tests] build docker image. / Build pcapi-tests:a857fd6202734631d3e0e8677dd8534010740663
[pcapi] build docker image.  /  Build pcapi:a857fd6202734631d3e0e8677dd8534010740663
2m 34s
[pcapi] build docker image. / Build pcapi:a857fd6202734631d3e0e8677dd8534010740663
[pcapi-console] build docker image.  /  Build pcapi-console:a857fd6202734631d3e0e8677dd8534010740663
3m 41s
[pcapi-console] build docker image. / Build pcapi-console:a857fd6202734631d3e0e8677dd8534010740663
MyPy cop  /  MyPy cop test
34s
MyPy cop / MyPy cop test
Tests API documentation  /  Check API documentation can be built
Tests API documentation / Check API documentation can be built
[PRO] Deploy PR version for validation  /  deploy_on_firebase
[PRO] Deploy PR version for validation / deploy_on_firebase
Dependabot  /  dependabot
Dependabot / dependabot
Matrix: Tests api / Pytest
Tests api  /  Quality checks
2m 59s
Tests api / Quality checks
Tests api  /  Pylint
3m 59s
Tests api / Pylint
Tests api  /  Test database schema
2m 52s
Tests api / Test database schema
Tests pro E2E  /  E2E tests and notifications
10m 55s
Tests pro E2E / E2E tests and notifications
Update api client template  /  Update API Client template
4m 54s
Update api client template / Update API Client template
Push pcapi docker image to registry  /  push-docker-image
Push pcapi docker image to registry / push-docker-image
Push pcapi-console docker image to registry  /  push-docker-image
Push pcapi-console docker image to registry / push-docker-image
Fit to window
Zoom out
Zoom in

Annotations

11 errors, 2 warnings, and 3 notices
tests/connectors/beneficiaries/ubble_test.py.test_start_identification: tests/connectors/beneficiaries/ubble_test.py#L20
requests_mock.exceptions.NoMockAddress: No mock address: POST https://api.ubble.example.com/identifications/
tests/connectors/beneficiaries/ubble_test.py.test_start_identification_connection_error: tests/connectors/beneficiaries/ubble_test.py#L73
requests_mock.exceptions.NoMockAddress: No mock address: POST https://api.ubble.example.com/identifications/
tests/connectors/beneficiaries/ubble_test.py.test_start_identification_http_error_status: tests/connectors/beneficiaries/ubble_test.py#L96
requests_mock.exceptions.NoMockAddress: No mock address: POST https://api.ubble.example.com/identifications/
tests/connectors/recommendation_test.py.test_basics: tests/connectors/recommendation_test.py#L89
sqlalchemy.exc.IntegrityError: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "user_pkey" DETAIL: Key (id)=(1) already exists. [SQL: INSERT INTO "user" ("isActive", id, activity, address, city, civility, comment, "culturalSurveyFilledDate", "culturalSurveyId", "dateCreated", "dateOfBirth", "departementCode", email, "externalIds", "extraData", "firstName", "hasSeenProTutorials", "idPieceNumber", "ineHash", "irisFranceId", "isEmailValidated", "lastConnectionDate", "lastName", married_name, "needsToFillCulturalSurvey", "notificationSubscriptions", password, "phoneNumber", "phoneValidationStatus", "postalCode", "recreditAmountToShow", roles, "schoolType", "validatedBirthDate") VALUES (%(isActive)s, %(id)s, %(activity)s, %(address)s, %(city)s, %(civility)s, %(comment)s, %(culturalSurveyFilledDate)s, %(culturalSurveyId)s, %(dateCreated)s, %(dateOfBirth)s, %(departementCode)s, %(email)s, %(externalIds)s, %(extraData)s, %(firstName)s, %(hasSeenProTutorials)s, %(idPieceNumber)s, %(ineHash)s, %(irisFranceId)s, %(isEmailValidated)s, %(lastConnectionDate)s, %(lastName)s, %(married_name)s, %(needsToFillCulturalSurvey)s, %(notificationSubscriptions)s, %(password)s, %(phoneNumber)s, %(phoneValidationStatus)s, %(postalCode)s, %(recreditAmountToShow)s, %(roles)s::VARCHAR(20)[], %(schoolType)s, %(validatedBirthDate)s)] [parameters: {'isActive': True, 'id': 1, 'activity': None, 'address': '7 place des noces rouges', 'city': 'La Rochelle', 'civility': None, 'comment': None, 'culturalSurveyFilledDate': None, 'culturalSurveyId': None, 'dateCreated': datetime.datetime(2024, 11, 21, 14, 53, 30, 562351), 'dateOfBirth': datetime.date(1984, 11, 21), 'departementCode': None, 'email': 'jean.neige7@example.com', 'externalIds': '{}', 'extraData': '{}', 'firstName': 'Jean', 'hasSeenProTutorials': True, 'idPieceNumber': None, 'ineHash': None, 'irisFranceId': None, 'isEmailValidated': True, 'lastConnectionDate': None, 'lastName': 'Neige', 'married_name': None, 'needsToFillCulturalSurvey': True, 'notificationSubscriptions': '{"marketing_push": true, "marketing_email": true, "subscribed_themes": []}', 'password': <psycopg2.extensions.Binary object at 0x7fb45b9528e0>, 'phoneNumber': None, 'phoneValidationStatus': None, 'postalCode': '00741', 'recreditAmountToShow': None, 'roles': [], 'schoolType': None, 'validatedBirthDate': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj)
tests/connectors/recommendation_test.py.test_params: tests/connectors/recommendation_test.py#L102
sqlalchemy.exc.IntegrityError: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "user_pkey" DETAIL: Key (id)=(1) already exists. [SQL: INSERT INTO "user" ("isActive", id, activity, address, city, civility, comment, "culturalSurveyFilledDate", "culturalSurveyId", "dateCreated", "dateOfBirth", "departementCode", email, "externalIds", "extraData", "firstName", "hasSeenProTutorials", "idPieceNumber", "ineHash", "irisFranceId", "isEmailValidated", "lastConnectionDate", "lastName", married_name, "needsToFillCulturalSurvey", "notificationSubscriptions", password, "phoneNumber", "phoneValidationStatus", "postalCode", "recreditAmountToShow", roles, "schoolType", "validatedBirthDate") VALUES (%(isActive)s, %(id)s, %(activity)s, %(address)s, %(city)s, %(civility)s, %(comment)s, %(culturalSurveyFilledDate)s, %(culturalSurveyId)s, %(dateCreated)s, %(dateOfBirth)s, %(departementCode)s, %(email)s, %(externalIds)s, %(extraData)s, %(firstName)s, %(hasSeenProTutorials)s, %(idPieceNumber)s, %(ineHash)s, %(irisFranceId)s, %(isEmailValidated)s, %(lastConnectionDate)s, %(lastName)s, %(married_name)s, %(needsToFillCulturalSurvey)s, %(notificationSubscriptions)s, %(password)s, %(phoneNumber)s, %(phoneValidationStatus)s, %(postalCode)s, %(recreditAmountToShow)s, %(roles)s::VARCHAR(20)[], %(schoolType)s, %(validatedBirthDate)s)] [parameters: {'isActive': True, 'id': 1, 'activity': None, 'address': '8 place des noces rouges', 'city': 'La Rochelle', 'civility': None, 'comment': None, 'culturalSurveyFilledDate': None, 'culturalSurveyId': None, 'dateCreated': datetime.datetime(2024, 11, 21, 14, 53, 30, 824521), 'dateOfBirth': datetime.date(1984, 11, 21), 'departementCode': None, 'email': 'jean.neige8@example.com', 'externalIds': '{}', 'extraData': '{}', 'firstName': 'Jean', 'hasSeenProTutorials': True, 'idPieceNumber': None, 'ineHash': None, 'irisFranceId': None, 'isEmailValidated': True, 'lastConnectionDate': None, 'lastName': 'Neige', 'married_name': None, 'needsToFillCulturalSurvey': True, 'notificationSubscriptions': '{"marketing_push": true, "marketing_email": true, "subscribed_themes": []}', 'password': <psycopg2.extensions.Binary object at 0x7fb45b796040>, 'phoneNumber': None, 'phoneValidationStatus': None, 'postalCode': '17516', 'recreditAmountToShow': None, 'roles': [], 'schoolType': None, 'validatedBirthDate': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj)
tests/connectors/recommendation_test.py.test_timeout_failure: tests/connectors/recommendation_test.py#L122
sqlalchemy.exc.IntegrityError: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "user_pkey" DETAIL: Key (id)=(1) already exists. [SQL: INSERT INTO "user" ("isActive", id, activity, address, city, civility, comment, "culturalSurveyFilledDate", "culturalSurveyId", "dateCreated", "dateOfBirth", "departementCode", email, "externalIds", "extraData", "firstName", "hasSeenProTutorials", "idPieceNumber", "ineHash", "irisFranceId", "isEmailValidated", "lastConnectionDate", "lastName", married_name, "needsToFillCulturalSurvey", "notificationSubscriptions", password, "phoneNumber", "phoneValidationStatus", "postalCode", "recreditAmountToShow", roles, "schoolType", "validatedBirthDate") VALUES (%(isActive)s, %(id)s, %(activity)s, %(address)s, %(city)s, %(civility)s, %(comment)s, %(culturalSurveyFilledDate)s, %(culturalSurveyId)s, %(dateCreated)s, %(dateOfBirth)s, %(departementCode)s, %(email)s, %(externalIds)s, %(extraData)s, %(firstName)s, %(hasSeenProTutorials)s, %(idPieceNumber)s, %(ineHash)s, %(irisFranceId)s, %(isEmailValidated)s, %(lastConnectionDate)s, %(lastName)s, %(married_name)s, %(needsToFillCulturalSurvey)s, %(notificationSubscriptions)s, %(password)s, %(phoneNumber)s, %(phoneValidationStatus)s, %(postalCode)s, %(recreditAmountToShow)s, %(roles)s::VARCHAR(20)[], %(schoolType)s, %(validatedBirthDate)s)] [parameters: {'isActive': True, 'id': 1, 'activity': None, 'address': '9 place des noces rouges', 'city': 'La Rochelle', 'civility': None, 'comment': None, 'culturalSurveyFilledDate': None, 'culturalSurveyId': None, 'dateCreated': datetime.datetime(2024, 11, 21, 14, 53, 31, 431768), 'dateOfBirth': datetime.date(1984, 11, 21), 'departementCode': None, 'email': 'jean.neige9@example.com', 'externalIds': '{}', 'extraData': '{}', 'firstName': 'Jean', 'hasSeenProTutorials': True, 'idPieceNumber': None, 'ineHash': None, 'irisFranceId': None, 'isEmailValidated': True, 'lastConnectionDate': None, 'lastName': 'Neige', 'married_name': None, 'needsToFillCulturalSurvey': True, 'notificationSubscriptions': '{"marketing_push": true, "marketing_email": true, "subscribed_themes": []}', 'password': <psycopg2.extensions.Binary object at 0x7fb45b31fb40>, 'phoneNumber': None, 'phoneValidationStatus': None, 'postalCode': '02671', 'recreditAmountToShow': None, 'roles': [], 'schoolType': None, 'validatedBirthDate': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj)
tests/connectors/recommendation_test.py.test_generic_failure: tests/connectors/recommendation_test.py#L133
sqlalchemy.exc.IntegrityError: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "user_pkey" DETAIL: Key (id)=(1) already exists. [SQL: INSERT INTO "user" ("isActive", id, activity, address, city, civility, comment, "culturalSurveyFilledDate", "culturalSurveyId", "dateCreated", "dateOfBirth", "departementCode", email, "externalIds", "extraData", "firstName", "hasSeenProTutorials", "idPieceNumber", "ineHash", "irisFranceId", "isEmailValidated", "lastConnectionDate", "lastName", married_name, "needsToFillCulturalSurvey", "notificationSubscriptions", password, "phoneNumber", "phoneValidationStatus", "postalCode", "recreditAmountToShow", roles, "schoolType", "validatedBirthDate") VALUES (%(isActive)s, %(id)s, %(activity)s, %(address)s, %(city)s, %(civility)s, %(comment)s, %(culturalSurveyFilledDate)s, %(culturalSurveyId)s, %(dateCreated)s, %(dateOfBirth)s, %(departementCode)s, %(email)s, %(externalIds)s, %(extraData)s, %(firstName)s, %(hasSeenProTutorials)s, %(idPieceNumber)s, %(ineHash)s, %(irisFranceId)s, %(isEmailValidated)s, %(lastConnectionDate)s, %(lastName)s, %(married_name)s, %(needsToFillCulturalSurvey)s, %(notificationSubscriptions)s, %(password)s, %(phoneNumber)s, %(phoneValidationStatus)s, %(postalCode)s, %(recreditAmountToShow)s, %(roles)s::VARCHAR(20)[], %(schoolType)s, %(validatedBirthDate)s)] [parameters: {'isActive': True, 'id': 1, 'activity': None, 'address': '10 place des noces rouges', 'city': 'La Rochelle', 'civility': None, 'comment': None, 'culturalSurveyFilledDate': None, 'culturalSurveyId': None, 'dateCreated': datetime.datetime(2024, 11, 21, 14, 53, 31, 685548), 'dateOfBirth': datetime.date(1984, 11, 21), 'departementCode': None, 'email': 'jean.neige10@example.com', 'externalIds': '{}', 'extraData': '{}', 'firstName': 'Jean', 'hasSeenProTutorials': True, 'idPieceNumber': None, 'ineHash': None, 'irisFranceId': None, 'isEmailValidated': True, 'lastConnectionDate': None, 'lastName': 'Neige', 'married_name': None, 'needsToFillCulturalSurvey': True, 'notificationSubscriptions': '{"marketing_push": true, "marketing_email": true, "subscribed_themes": []}', 'password': <psycopg2.extensions.Binary object at 0x7fb45b8afd80>, 'phoneNumber': None, 'phoneValidationStatus': None, 'postalCode': '66607', 'recreditAmountToShow': None, 'roles': [], 'schoolType': None, 'validatedBirthDate': None}] (Background on this error at: https://sqlalche.me/e/14/gkpj)
Tests api / Pytest (tests --ignore=tests/core --ignore=tests/routes)
❌ Tests reported 8 failures
tests/core/fraud/test_api.py.test_send_email_to_fraud_if_duplicated_beneficiary: tests/core/fraud/test_api.py#L294
ValueError: unhandled Ubble status None for identification None
Update api client template / Update API Client template
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/
Tests api / Quality checks
Running tests api with europe-west1-docker.pkg.dev/passculture-infra-prod/pass-culture-artifact-registry/pcapi-tests:a857fd6202734631d3e0e8677dd8534010740663
Update api client template / Update API Client template
Running update api client template with europe-west1-docker.pkg.dev/passculture-infra-prod/pass-culture-artifact-registry/pcapi:a857fd6202734631d3e0e8677dd8534010740663
Tests pro E2E / E2E tests and notifications
Running e2e-tests with europe-west1-docker.pkg.dev/passculture-infra-prod/pass-culture-artifact-registry/pcapi:a857fd6202734631d3e0e8677dd8534010740663

Artifacts

Produced during runtime
Name Size
pass-culture~pass-culture-main~BBXOI2.dockerbuild
93.5 KB
pass-culture~pass-culture-main~HQDKVC.dockerbuild
85.2 KB
pass-culture~pass-culture-main~ZIVIZI.dockerbuild
159 KB
pcapi-a857fd6202734631d3e0e8677dd8534010740663.tar Expired
299 MB
pcapi-console-a857fd6202734631d3e0e8677dd8534010740663.tar Expired
482 MB
pcapi-tests-a857fd6202734631d3e0e8677dd8534010740663.tar Expired
529 MB