Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
ci(cypress): resume optional connectors at merge group level (#11156)
CHALLA NISHANTH BABU3763380a484e
diff --git a/.github/workflows/cypress-tests-runner.yml b/.github/workflows/cypress-tests-runner.ymlindex be60d403d8..4f7e0cdd32 100644--- a/.github/workflows/cypress-tests-runner.yml+++ b/.github/workflows/cypress-tests-runner.yml@@ -17,13 +17,13 @@ env:CARGO_INCREMENTAL: 0CARGO_NET_RETRY: 10PAYMENTS_CONNECTORS: "stripe cybersource"- OPTIONAL_PAYMENTS_CONNECTORS_BATCH_1: "noon payload nmi"- OPTIONAL_PAYMENTS_CONNECTORS_BATCH_2: "trustpay braintree adyen"+ OPTIONAL_PAYMENTS_CONNECTORS_BATCH_1: "adyen paypal checkout"+ OPTIONAL_PAYMENTS_CONNECTORS_BATCH_2: "fiuu redsys zift"OPTIONAL_PAYMENTS_CONNECTORS_BATCH_3: "nexixpay cryptopay finix"- OPTIONAL_PAYMENTS_CONNECTORS_BATCH_4: "iatapay cashtocode peachpayments"+ OPTIONAL_PAYMENTS_CONNECTORS_BATCH_4: "novalnet airwallex noon"OPTIONAL_PAYMENTS_CONNECTORS_BATCH_5: "worldpayxml checkout mollie"- OPTIONAL_PAYMENTS_CONNECTORS_BATCH_6: "fiuu worldpay zift"- OPTIONAL_PAYMENTS_CONNECTORS_BATCH_7: "aiwallex novalnet redsys"+ OPTIONAL_PAYMENTS_CONNECTORS_BATCH_6: "trustpay braintree"+ OPTIONAL_PAYMENTS_CONNECTORS_BATCH_7: "airwallex novalnet redsys"OPTIONAL_PAYMENTS_CONNECTORS_BATCH_8: "paypal nuvei"ALPHA_PAYMENTS_CONNECTORS: "celero silverflow"RUST_BACKTRACE: short@@ -620,10 +620,9 @@ jobs:cypress-tests/cypress/reports/retention-days: 1- # Optional connectors are paused currently because of shortage of hyperswitch runners for the PRs.prepare-matrix:name: Prepare Optional Connectors matrix to run cypress tests- if: false+ if: github.event_name == 'merge_group'runs-on: hyperswitch-runnersoutputs:matrix: ${{ steps.set-matrix.outputs.matrix }}@@ -640,49 +639,29 @@ jobs:"name": "batch-1","connectors": "'"${OPTIONAL_PAYMENTS_CONNECTORS_BATCH_1}"'","parallel": 3,- "report_artifact_name": "cypress-test-results-batch-1"+ "report_artifact_name": "cypress-test-results-batch-1",+ "server_logs_artifact": "server-logs-batch-1"},{"name": "batch-2","connectors": "'"${OPTIONAL_PAYMENTS_CONNECTORS_BATCH_2}"'","parallel": 3,- "report_artifact_name": "cypress-test-results-batch-2"+ "report_artifact_name": "cypress-test-results-batch-2",+ "server_logs_artifact": "server-logs-batch-2"},{"name": "batch-3","connectors": "'"${OPTIONAL_PAYMENTS_CONNECTORS_BATCH_3}"'","parallel": 3,- "report_artifact_name": "cypress-test-results-batch-3"+ "report_artifact_name": "cypress-test-results-batch-3",+ "server_logs_artifact": "server-logs-batch-3"},{"name": "batch-4","connectors": "'"${OPTIONAL_PAYMENTS_CONNECTORS_BATCH_4}"'","parallel": 3,- "report_artifact_name": "cypress-test-results-batch-4"- },- {- "name": "batch-5",- "connectors": "'"${OPTIONAL_PAYMENTS_CONNECTORS_BATCH_5}"'",- "parallel": 3,- "report_artifact_name": "cypress-test-results-batch-5"- },- {- "name": "batch-6",- "connectors": "'"${OPTIONAL_PAYMENTS_CONNECTORS_BATCH_6}"'",- "parallel": 3,- "report_artifact_name": "cypress-test-results-batch-6"- },- {- "name": "batch-7",- "connectors": "'"${OPTIONAL_PAYMENTS_CONNECTORS_BATCH_7}"'",- "parallel": 3,- "report_artifact_name": "cypress-test-results-batch-7"- },- {- "name": "batch-8",- "connectors": "'"${OPTIONAL_PAYMENTS_CONNECTORS_BATCH_8}"'",- "parallel": 3,- "report_artifact_name": "cypress-test-results-batch-8"+ "report_artifact_name": "cypress-test-results-batch-4",+ "server_logs_artifact": "server-logs-batch-4"}]}'@@ -691,8 +670,8 @@ jobs:runner-optional-connectors:name: Run Optional Connectors Cypress tests- if: false- needs: [ build-hyperswitch, prepare-matrix ]+ if: github.event_name == 'merge_group'+ needs: [ build-hyperswitch-runners, prepare-matrix ]runs-on: hyperswitch-runnersstrategy:fail-fast: false@@ -744,7 +723,7 @@ jobs:- name: Download hyperswitch server artifactuses: actions/download-artifact@v4with:- name: hyperswitch-server+ name: hyperswitch-server-hyperswitch-runnerspath: target/debug- name: Make server executable@@ -770,6 +749,7 @@ jobs:shell: bashrun: |echo "CYPRESS_CONNECTOR_AUTH_FILE_PATH=${{ github.workspace }}/.github/test/creds.json" >> $GITHUB_ENV+ echo "SERVER_LOG_PATH=${{ github.workspace }}/server-logs.txt" >> $GITHUB_ENV- name: Fetch keysenv:@@ -821,13 +801,14 @@ jobs:ROUTER__APPLEPAY_DECRYPT_KEYS__APPLE_PAY_MERCHANT_CERT: ${{ secrets.APPLE_PAY_MERCHANT_CERTIFICATE }}ROUTER__APPLEPAY_DECRYPT_KEYS__APPLE_PAY_MERCHANT_CERT_KEY: ${{ secrets.APPLE_PAY_MERCHANT_CERTIFICATE_KEY }}run: |+ touch "${{ env.SERVER_LOG_PATH }}"# Start the server in the background- target/debug/router &+ target/debug/router >> "${{ env.SERVER_LOG_PATH }}" 2>&1 &SERVER_PID=$!echo "PID=${SERVER_PID}" >> $GITHUB_ENV- # Wait for the server to start in port 8080+ # Wait for the server to start in port 8080COUNT=0while ! nc -z localhost 8080; doif [ $COUNT -gt 12 ]; then # Wait for up to 2 minutes (12 * 10 seconds)@@ -851,6 +832,22 @@ jobs:kill "${{ env.PID }}"+ - name: Compress and upload server logs on failure+ if: env.RUN_TESTS == 'true' && failure()+ run: |+ if [[ -f "${{ env.SERVER_LOG_PATH }}" ]]; then+ gzip -9 "${{ env.SERVER_LOG_PATH }}"+ fi++ - name: Upload server logs on failure+ if: env.RUN_TESTS == 'true' && failure()+ uses: actions/upload-artifact@v4+ with:+ name: ${{ matrix.batch.server_logs_artifact }}+ path: ${{ env.SERVER_LOG_PATH }}.gz+ if-no-files-found: ignore+ retention-days: 1+- name: Upload Cypress test resultsif: failure()uses: actions/upload-artifact@v4@@ -862,7 +859,7 @@ jobs:runner_alpha:name: Run optional Cypress tests for alpha connectors- needs: build-hyperswitch+ needs: build-hyperswitch-runnersif: |github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'S-test-ready')runs-on: hyperswitch-runners