diff --git a/.github/workflows/check-proto-break.yml b/.github/workflows/check-proto-break.yml index d293d29524..d1aeac0c97 100644 --- a/.github/workflows/check-proto-break.yml +++ b/.github/workflows/check-proto-break.yml @@ -8,7 +8,25 @@ on: - edited jobs: + check-if-code-change: + runs-on: ubuntu-latest + outputs: + change: ${{ steps.check.outputs.change }} + steps: + - uses: actions/checkout@v4 + with: + go-version: '1.20' + fetch-depth: 0 + - run: | + if git --no-pager diff --exit-code origin/main...HEAD -- . ':!docs' ':!*.md'; then + echo "::set-output name=change::false" + else + echo "::set-output name=change::true" + fi + id: check check-proto-break: + needs: check-if-code-change + if: ${{ needs.check-if-code-change.outputs.change == 'true' }} runs-on: ubuntu-latest steps: - uses: actions/setup-go@v3 diff --git a/.github/workflows/gofmt.yml b/.github/workflows/gofmt.yml index f9da39a006..9a558047c4 100644 --- a/.github/workflows/gofmt.yml +++ b/.github/workflows/gofmt.yml @@ -11,7 +11,25 @@ on: merge_group: jobs: + check-if-code-change: + runs-on: ubuntu-latest + outputs: + change: ${{ steps.check.outputs.change }} + steps: + - uses: actions/checkout@v4 + with: + go-version: '1.20' + fetch-depth: 0 + - run: | + if git --no-pager diff --exit-code origin/main...HEAD -- . ':!docs' ':!*.md'; then + echo "::set-output name=change::false" + else + echo "::set-output name=change::true" + fi + id: check gofmt: + needs: check-if-code-change + if: ${{ needs.check-if-code-change.outputs.change == 'true' }} name: gofmt runs-on: ubuntu-latest steps: diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 7d837605f4..7c8da0864d 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -21,7 +21,25 @@ env: GOLINT_VERSION: v1.53.3 jobs: + check-if-code-change: + runs-on: ubuntu-latest + outputs: + change: ${{ steps.check.outputs.change }} + steps: + - uses: actions/checkout@v4 + with: + go-version: '1.20' + fetch-depth: 0 + - run: | + if git --no-pager diff --exit-code origin/main...HEAD -- . ':!docs' ':!*.md'; then + echo "::set-output name=change::false" + else + echo "::set-output name=change::true" + fi + id: check golangci: + needs: check-if-code-change + if: ${{ needs.check-if-code-change.outputs.change == 'true' }} name: golang-lint runs-on: ubuntu-latest steps: diff --git a/docs/docs/api-reference/starlark-reference/service-config.md b/docs/docs/api-reference/starlark-reference/service-config.md index 11afaa6592..7c771ad3ae 100644 --- a/docs/docs/api-reference/starlark-reference/service-config.md +++ b/docs/docs/api-reference/starlark-reference/service-config.md @@ -91,6 +91,16 @@ config = ServiceConfig( # Application protocol for the port # Optional application_protocol = "http", + + # Kurtosis will automatically perform a check to ensure all declared UDP and TCP ports are open and ready for traffic and connections upon startup. + # You may specify a custom wait timeout duration or disable the feature entirely. + # You may specify a custom wait timeout duration with a string: + # wait = "2m" + # Or, you can disable this feature by setting the value to None: + # wait = None + # The feature is enabled by default with a default timeout of 15s + # OPTIONAL (DEFAULT:"15s") + wait = "4s" ), },