Skip to content

Conversation

SanchithHegde
Copy link
Member

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

This PR includes minor refactors and improvements to our CI workflows:

  1. The Docker build workflow files are not being used, and have been removed.
  2. The connector sanity and UI sanity workflows are not being actively used. I didn't want to remove them completely, so instead "archived" them for later reference.
  3. Dependency updates: The versions of the actions that we use have been updated.
  4. Replaced usages of baptiste0928/cargo-install with taiki-e/install-action to install tools. This is done because if the binary is not available in cache, the baptiste0928/cargo-install action builds it from source, which can take a longer amount of time, as compared to taiki-e/install-action, which should be deterministic since it pulls pre-built binaries from releases.
  5. We were using the CARGO_REGISTRIES_CRATES_IO_PROTOCOL environment variable to enable sparse index, but since it is enabled by default on recent Rust versions, I've removed it.
  6. Replaced usages of postgres:latest and redis:latest with postgres:alpine and redis:alpine respectively, to slightly reduce bandwidth used when pulling images.
  7. The Postman workflow has a workflow_dispatch trigger, which hasn't been used in quite a while, so I've removed it.
  8. The CI-push workflow was missing some environment variables that allowed us to handle flaky CI failures due to network issues, so I copied them from the CI-pr workflow.

Motivation and Context

Minor improvements and dependency updates to the CI workflows.

How did you test it?

N/A

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@SanchithHegde SanchithHegde added A-CI-CD Area: Continuous Integration/Deployment S-waiting-on-review Status: This PR has been implemented and needs to be reviewed labels Feb 19, 2025
@SanchithHegde SanchithHegde added this to the February 2025 Release milestone Feb 19, 2025
@SanchithHegde SanchithHegde self-assigned this Feb 19, 2025
@SanchithHegde SanchithHegde requested review from a team as code owners February 19, 2025 09:57
Copy link

semanticdiff-com bot commented Feb 19, 2025

Copy link
Member

@pixincreate pixincreate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

other than that, lgtm

Comment on lines 211 to +215
# - name: Install cargo-nextest
# uses: baptiste0928/cargo-install@v2.2.0
# uses: taiki-e/install-action@v2
# with:
# crate: cargo-nextest
# tool: cargo-nextest
# checksum: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can just remove the commented ones since they're unused? or do we have it kept as a reference?

Copy link
Contributor

@prasunna09 prasunna09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dockerfile' changes lgtm

@SanchithHegde SanchithHegde removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Feb 20, 2025
@Gnanasundari24 Gnanasundari24 added this pull request to the merge queue Feb 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 24, 2025
@pixincreate pixincreate added this pull request to the merge queue Feb 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 24, 2025
@SanchithHegde SanchithHegde added this pull request to the merge queue Feb 24, 2025
Merged via the queue into main with commit 9ba5ee6 Feb 24, 2025
21 of 24 checks passed
@SanchithHegde SanchithHegde deleted the ci-minor-refactors branch February 24, 2025 22:06
pixincreate added a commit to pixincreate/hyperswitch that referenced this pull request Feb 25, 2025
…tion-fork

* 'main' of github.com:juspay/hyperswitch:
  feat(core): [Card Testing Guard] Implement Card Testing Guard  (juspay#7108)
  chore(version): 2025.02.25.0
  ci: minor refactors and improvements (juspay#7308)
  fix(connector): [NMI] Added enum for Void Reason (juspay#7221)
  ci(CI-pr): disable `cargo-hack` step for hotfix PRs (juspay#7334)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CI-CD Area: Continuous Integration/Deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants