Skip to content

Commit 80be26f

Browse files
authored
Stop cargo check examples in smithy-rs CI (#4063)
## Motivation and Context Removes a CI step that runs `cargo check` against the examples from the `aws-doc-sdk-examples` repository ## Description We've long had the said CI step due to the churn in the public API prior to GA. However, value of doing so has diminished after GA, especially when we have a separate check for semver hazards. ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
1 parent 30eed57 commit 80be26f

File tree

8 files changed

+0
-54
lines changed

8 files changed

+0
-54
lines changed

.github/workflows/ci-main.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ jobs:
6464
ci:
6565
needs: acquire-base-image
6666
uses: ./.github/workflows/ci.yml
67-
with:
68-
run_sdk_examples: true
6967
secrets:
7068
ENCRYPTED_DOCKER_PASSWORD: ${{ needs.acquire-base-image.outputs.docker-login-password }}
7169
DOCKER_LOGIN_TOKEN_PASSPHRASE: ${{ secrets.DOCKER_LOGIN_TOKEN_PASSPHRASE }}

.github/workflows/ci-merge-queue.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ jobs:
8888
- acquire-base-image
8989
if: ${{ github.event.pull_request.head.repo.full_name == 'smithy-lang/smithy-rs' || toJSON(github.event.merge_group) != '{}' }}
9090
uses: ./.github/workflows/ci.yml
91-
with:
92-
run_sdk_examples: true
9391
secrets:
9492
ENCRYPTED_DOCKER_PASSWORD: ${{ needs.save-docker-login-token.outputs.docker-login-password }}
9593
DOCKER_LOGIN_TOKEN_PASSPHRASE: ${{ secrets.DOCKER_LOGIN_TOKEN_PASSPHRASE }}

.github/workflows/ci-pr-forks.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,3 @@ jobs:
4444
uses: ./.github/workflows/ci.yml
4545
with:
4646
run_canary: false
47-
run_sdk_examples: true

.github/workflows/ci-pr.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ jobs:
9090
- acquire-base-image
9191
if: ${{ github.event.pull_request.head.repo.full_name == 'smithy-lang/smithy-rs' }}
9292
uses: ./.github/workflows/ci.yml
93-
with:
94-
run_sdk_examples: true
9593
secrets:
9694
ENCRYPTED_DOCKER_PASSWORD: ${{ needs.save-docker-login-token.outputs.docker-login-password }}
9795
DOCKER_LOGIN_TOKEN_PASSPHRASE: ${{ secrets.DOCKER_LOGIN_TOKEN_PASSPHRASE }}

.github/workflows/ci.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ on:
1414
required: false
1515
default: true
1616
type: boolean
17-
run_sdk_examples:
18-
description: Whether to run the SDK example checks or not.
19-
required: false
20-
default: false
21-
type: boolean
2217
git_ref:
2318
description: |
2419
The git reference that all checks should be run against. It can be a branch, a tag or a commit SHA.
@@ -377,27 +372,9 @@ jobs:
377372
echo "PR bot and canary cannot be invoked from a forked repository. Ask a maintainer to manually invoke them using your PR."
378373
exit 1
379374
380-
# This job is split out from the rest since it is not required to pass for merge
381-
check-sdk-examples:
382-
name: Check SDK Examples
383-
if: ${{ inputs.run_sdk_examples }}
384-
needs: generate
385-
runs-on: ubuntu-latest
386-
timeout-minutes: 20
387-
steps:
388-
- uses: actions/checkout@v4
389-
with:
390-
path: smithy-rs
391-
ref: ${{ inputs.git_ref }}
392-
- name: Run ${{ matrix.actions.action }}
393-
uses: ./smithy-rs/.github/actions/docker-build
394-
with:
395-
action: check-aws-sdk-examples
396-
397375
# Pseudo-job that depends on matrix jobs so that we don't have to enter
398376
# the myriad of test matrix combinations into GitHub's protected branch rules
399377
require-all:
400-
# Should NOT depend on check-sdk-examples since that's an optional check
401378
needs:
402379
- generate
403380
- test-codegen

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ jobs:
9696
- acquire-base-image
9797
uses: ./.github/workflows/ci.yml
9898
with:
99-
run_sdk_examples: false
10099
git_ref: ${{ inputs.commit_sha }}
101100
secrets:
102101
CANARY_GITHUB_ACTIONS_ROLE_ARN: ${{ secrets.CANARY_GITHUB_ACTIONS_ROLE_ARN }}

ci.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ check-aws-sdk-canary: generate-aws-sdk-smoketest
2828
check-aws-sdk-adhoc-tests:
2929
$(CI_ACTION) $@ $(ARGS)
3030

31-
.PHONY: check-aws-sdk-examples
32-
check-aws-sdk-examples: generate-aws-sdk
33-
$(CI_ACTION) $@ $(ARGS)
34-
3531
.PHONY: check-aws-sdk-services
3632
check-aws-sdk-services: generate-aws-sdk
3733
$(CI_ACTION) $@ $(ARGS)

tools/ci-scripts/check-aws-sdk-examples

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)