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
revert: ci: use `sccache-action` for caching compilation artifacts (#1880)
Sanchith Hegdea988018350dc
diff --git a/.github/workflows/CI-pr.yml b/.github/workflows/CI-pr.ymlindex a13f0eb51e..61d4c6f7df 100644--- a/.github/workflows/CI-pr.yml+++ b/.github/workflows/CI-pr.yml@@ -35,9 +35,6 @@ env:RUST_BACKTRACE: short# Use cargo's sparse index protocolCARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse- # Enable and use the sccache action for caching- SCCACHE_GHA_ENABLED: "true"- RUSTC_WRAPPER: "sccache"jobs:formatting:@@ -87,7 +84,9 @@ jobs:with:toolchain: 1.65- - uses: mozilla-actions/[email protected]+ - uses: Swatinem/[email protected]+ with:+ save-if: ${{ github.event_name == 'push' }}- name: Install cargo-hackuses: baptiste0928/[email protected]@@ -294,7 +293,9 @@ jobs:# with:# crate: cargo-nextest- - uses: mozilla-actions/[email protected]+ - uses: Swatinem/[email protected]+ with:+ save-if: ${{ github.event_name == 'push' }}# - name: Setup Embark Studios lint rules# shell: bashdiff --git a/.github/workflows/CI-push.yml b/.github/workflows/CI-push.ymlindex cba1fb715d..e087c694c5 100644--- a/.github/workflows/CI-push.yml+++ b/.github/workflows/CI-push.yml@@ -19,32 +19,6 @@ concurrency:group: ${{ github.workflow }}-${{ github.ref }}cancel-in-progress: true-env:- # Disable incremental compilation.- #- # Incremental compilation is useful as part of an edit-build-test-edit cycle,- # as it lets the compiler avoid recompiling code that hasn't changed. However,- # on CI, we're not making small edits; we're almost always building the entire- # project from scratch. Thus, incremental compilation on CI actually- # introduces *additional* overhead to support making future builds- # faster...but no future builds will ever occur in any given CI environment.- #- # See https://matklad.github.io/2021/09/04/fast-rust-builds.html#ci-workflow- # for details.- CARGO_INCREMENTAL: 0- # Allow more retries for network requests in cargo (downloading crates) and- # rustup (installing toolchains). This should help to reduce flaky CI failures- # from transient network timeouts or other issues.- CARGO_NET_RETRY: 10- RUSTUP_MAX_RETRIES: 10- # Don't emit giant backtraces in the CI logs.- RUST_BACKTRACE: short- # Use cargo's sparse index protocol- CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse- # Enable and use the sccache action for caching- SCCACHE_GHA_ENABLED: "true"- RUSTC_WRAPPER: "sccache"-jobs:formatting:name: Check formatting@@ -89,7 +63,9 @@ jobs:with:toolchain: 1.65- - uses: mozilla-actions/[email protected]+ - uses: Swatinem/[email protected]+ with:+ save-if: ${{ github.event_name == 'push' }}- name: Install cargo-hackuses: baptiste0928/[email protected]@@ -162,7 +138,9 @@ jobs:# with:# crate: cargo-nextest- - uses: mozilla-actions/[email protected]+ - uses: Swatinem/[email protected]+ with:+ save-if: ${{ github.event_name == 'push' }}# - name: Setup Embark Studios lint rules# shell: bashdiff --git a/.github/workflows/connector-sanity-tests.yml b/.github/workflows/connector-sanity-tests.ymlindex 1aa14e5643..4d6199a86d 100644--- a/.github/workflows/connector-sanity-tests.yml+++ b/.github/workflows/connector-sanity-tests.yml@@ -38,9 +38,6 @@ env:RUST_BACKTRACE: short# Use cargo's sparse index protocolCARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse- # Enable and use the sccache action for caching- SCCACHE_GHA_ENABLED: "true"- RUSTC_WRAPPER: "sccache"jobs:test_connectors:@@ -89,7 +86,7 @@ jobs:with:toolchain: stable- - uses: mozilla-actions/[email protected]+ - uses: Swatinem/[email protected]- name: Decrypt connector auth fileenv:diff --git a/.github/workflows/connector-ui-sanity-tests.yml b/.github/workflows/connector-ui-sanity-tests.ymlindex 4809451d51..9c81d715b1 100644--- a/.github/workflows/connector-ui-sanity-tests.yml+++ b/.github/workflows/connector-ui-sanity-tests.yml@@ -2,9 +2,9 @@ name: Connector UI Sanity Testson:workflow_dispatch:-+pull_request_review:- types:+ types:- submittedmerge_group:types:@@ -26,7 +26,7 @@ env:## See https://matklad.github.io/2021/09/04/fast-rust-builds.html#ci-workflow# for details.- CARGO_INCREMENTAL: 0+ CARGO_INCREMENTAL: 1# Allow more retries for network requests in cargo (downloading crates) and# rustup (installing toolchains). This should help to reduce flaky CI failures# from transient network timeouts or other issues.@@ -36,9 +36,6 @@ env:RUST_BACKTRACE: short# Use cargo's sparse index protocolCARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse- # Enable and use the sccache action for caching- SCCACHE_GHA_ENABLED: "true"- RUSTC_WRAPPER: "sccache"jobs:test_connectors:@@ -76,13 +73,14 @@ jobs:# do not use more than 2 runners, try to group less time taking connectors together- stripe,airwallex,bluesnap,checkout,trustpay_3ds,payu,authorizedotnet,aci,noon- adyen_uk,shift4,worldline,multisafepay,paypal,mollie,nexinets+steps:- name: Ignore Tests incase of pull requestif: github.event_name == 'pull_request' || github.event_name == 'merge_group'shell: bashrun: |- echo "Skipped tests as the event is pull request"+ echo "Skipped tests as the event is pull request"exit 0- name: Checkout repository@@ -107,34 +105,34 @@ jobs:run: echo "CONNECTOR_TESTS_FILE_PATH=$HOME/target/test/connector_tests.json" >> $GITHUB_ENV- name: Set ignore_browser_profile usage in env- if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')shell: bashrun: echo "IGNORE_BROWSER_PROFILE=true" >> $GITHUB_ENV- name: Install latest compiler- if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')uses: actions-rs/toolchain@v1with:toolchain: stable- - uses: mozilla-actions/[email protected]+ - uses: Swatinem/[email protected]- uses: baptiste0928/[email protected]- if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')with:crate: diesel_clifeatures: postgresargs: "--no-default-features"- name: Diesel migration run- if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')shell: bashenv:DATABASE_URL: postgres://db_user:db_pass@localhost:5432/hyperswitch_dbrun: diesel migration run- name: Start server and run tests- if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')env:UI_TESTCASES_PATH: ${{ secrets.UI_TESTCASES_PATH }}INPUT: ${{ matrix.connector }}@@ -142,12 +140,12 @@ jobs:run: sh .github/scripts/run_ui_tests.sh- name: View test results- if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')shell: bashrun: cat tests/test_results.log- name: Check test results- if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')+ if: (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') || (github.event_name == 'workflow_dispatch')shell: bashrun: |if test "$( grep 'test result: FAILED' -r tests/test_results.log | wc -l )" -gt "0"; thendiff --git a/.github/workflows/postman-collection-runner.yml b/.github/workflows/postman-collection-runner.ymlindex b7615524c3..37c1bdd1b3 100644--- a/.github/workflows/postman-collection-runner.yml+++ b/.github/workflows/postman-collection-runner.yml@@ -16,9 +16,7 @@ env:RUSTUP_MAX_RETRIES: 10RUST_BACKTRACE: shortCARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse- CONNECTORS: "aci, adyen_uk, airwallex, authorizedotnet, bambora, bambora_3ds, bluesnap, checkout, globalpay, mollie, nexinets, nmi, shift4, stripe, trustpay, worldline"- SCCACHE_GHA_ENABLED: "true"- RUSTC_WRAPPER: "sccache"+ CONNECTORS: aci, adyen_uk, airwallex, authorizedotnet, bambora, bambora_3ds, bluesnap, checkout, globalpay, mollie, nexinets, nmi, shift4, stripe, trustpay, worldlinejobs:runner:@@ -35,7 +33,6 @@ jobs:--health-retries 5ports:- 6379:6379-postgres:image: "${{ github.event_name != 'pull_request' && 'postgres:14.5' || '' }}"env:@@ -55,7 +52,7 @@ jobs:if: github.event_name == 'pull_request'shell: bashrun: |- echo "Skipped tests as the event is pull request"+ echo "Skipped tests as the event is pull request"exit 0- name: Repository checkout@@ -90,8 +87,9 @@ jobs:with:toolchain: stable- - uses: mozilla-actions/[email protected]+ - name: Build and Cache Rust Dependenciesif: github.event_name != 'pull_request'+ uses: Swatinem/[email protected]- name: Install Diesel CLI with Postgres Supportif: github.event_name != 'pull_request'@@ -114,12 +112,12 @@ jobs:cargo run &COUNT=0# Wait for the server to start in port 8080- while netstat -lnt | awk '$4 ~ /:8080$/ {exit 1}'; do+ while netstat -lnt | awk '$4 ~ /:8080$/ {exit 1}'; do# Wait for 15 mins to start otherwise kill the taskif [ $COUNT -gt 90 ];thenexit 1- else+ elseCOUNT=$((COUNT+1))sleep 10fidiff --git a/.github/workflows/validate-openapi-spec.yml b/.github/workflows/validate-openapi-spec.ymlindex a25380ffad..72b76157f1 100644--- a/.github/workflows/validate-openapi-spec.yml+++ b/.github/workflows/validate-openapi-spec.yml@@ -11,32 +11,6 @@ concurrency:group: ${{ github.workflow }}-${{ github.ref }}cancel-in-progress: true-env:- # Disable incremental compilation.- #- # Incremental compilation is useful as part of an edit-build-test-edit cycle,- # as it lets the compiler avoid recompiling code that hasn't changed. However,- # on CI, we're not making small edits; we're almost always building the entire- # project from scratch. Thus, incremental compilation on CI actually- # introduces *additional* overhead to support making future builds- # faster...but no future builds will ever occur in any given CI environment.- #- # See https://matklad.github.io/2021/09/04/fast-rust-builds.html#ci-workflow- # for details.- CARGO_INCREMENTAL: 0- # Allow more retries for network requests in cargo (downloading crates) and- # rustup (installing toolchains). This should help to reduce flaky CI failures- # from transient network timeouts or other issues.- CARGO_NET_RETRY: 10- RUSTUP_MAX_RETRIES: 10- # Don't emit giant backtraces in the CI logs.- RUST_BACKTRACE: short- # Use cargo's sparse index protocol- CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse- # Enable and use the sccache action for caching- SCCACHE_GHA_ENABLED: "true"- RUSTC_WRAPPER: "sccache"-jobs:validate_json:name: Validate generated OpenAPI spec file@@ -61,8 +35,6 @@ jobs:with:toolchain: stable- - uses: mozilla-actions/[email protected]-- name: Generate the OpenAPI spec fileshell: bashrun: cargo run --features openapi -- generate-openapi-spec