-
Notifications
You must be signed in to change notification settings - Fork 4.2k
ci: minor refactors and improvements #7308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7ea8cf4
ci: remove unused Docker build workflows
SanchithHegde 58285a8
ci: move connector test and UI test workflows to `archive` directory
SanchithHegde 53908ab
ci: update versions of actions
SanchithHegde 594aa32
ci: use `taiki-e/install-action` instead of `baptiste0928/cargo-insta…
SanchithHegde cabe7ff
ci: remove `CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse` environment v…
SanchithHegde a952d03
ci: use `postgres:alpine` and `redis:alpine` images for service conta…
SanchithHegde f2898f2
ci: remove unnecessary comments and if conditions
SanchithHegde 786d0e6
ci(postman-collection-runner): remove unused `workflow_dispatch` trigger
SanchithHegde 9215f31
ci(CI-push): set environment variables to handle flaky CI failures du…
SanchithHegde File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,6 @@ name: CI-pr | |
|
||
on: | ||
pull_request: | ||
# paths: | ||
# - ".github/workflows/**" | ||
# - "crates/**" | ||
# - "examples/**" | ||
# - "Cargo.lock" | ||
# - "Cargo.toml" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
@@ -127,24 +121,24 @@ jobs: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Install sccache | ||
# uses: taiki-e/install-action@v2.33.28 | ||
# uses: taiki-e/install-action@v2 | ||
# with: | ||
# tool: sccache | ||
# checksum: true | ||
|
||
- name: Install rust cache | ||
uses: Swatinem/[email protected] | ||
with: | ||
save-if: false | ||
with: | ||
save-if: false | ||
|
||
- name: Install cargo-hack | ||
uses: taiki-e/install-action@v2.33.28 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-hack | ||
checksum: true | ||
|
||
- name: Install just | ||
uses: taiki-e/install-action@v2.41.10 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just | ||
checksum: true | ||
|
@@ -235,24 +229,24 @@ jobs: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Install sccache | ||
# uses: taiki-e/install-action@v2.33.28 | ||
# uses: taiki-e/install-action@v2 | ||
# with: | ||
# tool: sccache | ||
# checksum: true | ||
|
||
- name: Install rust cache | ||
uses: Swatinem/[email protected] | ||
with: | ||
save-if: false | ||
with: | ||
save-if: false | ||
|
||
- name: Install cargo-hack | ||
uses: taiki-e/install-action@v2.33.28 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-hack | ||
checksum: true | ||
|
||
- name: Install just | ||
uses: taiki-e/install-action@v2.41.10 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just | ||
checksum: true | ||
|
@@ -262,7 +256,7 @@ jobs: | |
run: .github/scripts/install-jq.sh | ||
|
||
# - name: Install cargo-nextest | ||
# uses: taiki-e/install-action@v2.33.28 | ||
# uses: taiki-e/install-action@v2 | ||
# with: | ||
# tool: cargo-nextest | ||
# checksum: true | ||
|
@@ -326,11 +320,11 @@ jobs: | |
|
||
- name: Install rust cache | ||
uses: Swatinem/[email protected] | ||
with: | ||
save-if: false | ||
with: | ||
save-if: false | ||
|
||
- name: Install just | ||
uses: taiki-e/install-action@v2.41.10 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just | ||
checksum: true | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,6 @@ on: | |
push: | ||
branches: | ||
- main | ||
# paths: | ||
# - ".github/workflows/**" | ||
# - "crates/**" | ||
# - "examples/**" | ||
# - "Cargo.lock" | ||
# - "Cargo.toml" | ||
|
||
merge_group: | ||
types: | ||
|
@@ -19,6 +13,27 @@ 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 | ||
|
||
jobs: | ||
formatting: | ||
name: Check formatting | ||
|
@@ -77,9 +92,9 @@ jobs: | |
uses: arduino/setup-protoc@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Install sccache | ||
# uses: taiki-e/install-action@v2.33.28 | ||
# uses: taiki-e/install-action@v2 | ||
# with: | ||
# tool: sccache | ||
# checksum: true | ||
|
@@ -89,12 +104,13 @@ jobs: | |
save-if: ${{ github.event_name == 'push' }} | ||
|
||
- name: Install cargo-hack | ||
uses: baptiste0928/cargo-install@v2.2.0 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
crate: cargo-hack | ||
tool: cargo-hack | ||
checksum: true | ||
|
||
- name: Install just | ||
uses: taiki-e/install-action@v2.41.10 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just | ||
checksum: true | ||
|
@@ -171,18 +187,19 @@ jobs: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Install sccache | ||
# uses: taiki-e/install-action@v2.33.28 | ||
# uses: taiki-e/install-action@v2 | ||
# with: | ||
# tool: sccache | ||
# checksum: true | ||
|
||
- name: Install cargo-hack | ||
uses: baptiste0928/cargo-install@v2.2.0 | ||
uses: taiki-e/install-action@v2.41.10 | ||
with: | ||
crate: cargo-hack | ||
tool: cargo-hack | ||
checksum: true | ||
|
||
- name: Install just | ||
uses: taiki-e/install-action@v2.41.10 | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: just | ||
checksum: true | ||
|
@@ -192,9 +209,10 @@ jobs: | |
run: .github/scripts/install-jq.sh | ||
|
||
# - 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 | ||
|
||
- uses: Swatinem/[email protected] | ||
with: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,8 +36,6 @@ env: | |
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 | ||
|
||
jobs: | ||
test_connectors: | ||
|
@@ -87,7 +85,7 @@ jobs: | |
toolchain: stable 2 weeks ago | ||
|
||
- uses: Swatinem/[email protected] | ||
with: | ||
with: | ||
save-if: false | ||
|
||
- name: Decrypt connector auth file | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,8 +31,6 @@ env: | |
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 | ||
RUST_MIN_STACK: 10485760 | ||
|
||
jobs: | ||
|
@@ -77,7 +75,7 @@ jobs: | |
if: (github.event_name == 'merge_group') || (github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name) | ||
shell: bash | ||
run: | | ||
echo "Skipped tests as the event is merge_group or pull_request from external repository" | ||
echo "Skipped tests as the event is merge_group or pull_request from external repository" | ||
exit 0 | ||
|
||
- name: Checkout repository | ||
|
@@ -123,16 +121,16 @@ jobs: | |
|
||
- name: Build and Cache Rust Dependencies | ||
uses: Swatinem/[email protected] | ||
with: | ||
save-if: false | ||
with: | ||
save-if: false | ||
|
||
- name: Install Diesel CLI with Postgres Support | ||
uses: baptiste0928/cargo-install@v2.2.0 | ||
uses: baptiste0928/cargo-install@v3.3.0 | ||
if: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }} | ||
with: | ||
crate: diesel_cli | ||
features: postgres | ||
args: "--no-default-features" | ||
args: --no-default-features | ||
|
||
- name: Diesel migration run | ||
if: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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?