Repository navigation
feat(http): negotiate HTTP/2 for direct HTTPS connections #1488
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
| # Copyright (c) 2026 Databricks, Inc. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| # See the License for the specific language governing permissions and | |
| # limitations under the License. | |
| # Code coverage report. Runs `cargo llvm-cov` against the unit / | |
| # integration test suite (E2E tests stay #[ignore]'d) and uploads | |
| # the lcov result to Codecov via OIDC. | |
| name: Coverage | |
| on: | |
| push: | |
| branches: [main] | |
| # Path-filtered: a full instrumented rebuild (`cargo llvm-cov`) is | |
| # expensive, so only run it when something that can move the | |
| # coverage number changes. Docs / workflow-only PRs skip it. | |
| paths: | |
| - "src/**" | |
| - "tests/**" | |
| - "adbc/**" | |
| - "pyo3/**" | |
| - "Cargo.toml" | |
| - "Cargo.lock" | |
| - ".github/workflows/coverage.yml" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "src/**" | |
| - "tests/**" | |
| - "adbc/**" | |
| - "pyo3/**" | |
| - "Cargo.toml" | |
| - "Cargo.lock" | |
| - ".github/workflows/coverage.yml" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.sha }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| id-token: write | |
| pull-requests: write | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| coverage: | |
| name: Coverage | |
| runs-on: | |
| group: databricks-protected-runner-group | |
| labels: linux-ubuntu-latest | |
| env: | |
| RUSTC_WRAPPER: sccache | |
| SCCACHE_GHA_ENABLED: "true" | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/setup-jfrog | |
| with: | |
| cargo: "true" | |
| - uses: actions-rust-lang/setup-rust-toolchain@166cdcfd11aee3cb47222f9ddb555ce30ddb9659 # v1.17.0 | |
| with: | |
| toolchain: stable | |
| components: llvm-tools-preview | |
| - name: Setup sccache | |
| uses: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 | |
| - name: Install cargo-llvm-cov | |
| uses: taiki-e/install-action@41049aa56687c35e0afa74eed4f09cec4f9afabf # v2.85.2 | |
| with: | |
| tool: cargo-llvm-cov | |
| - name: Run coverage | |
| # E2E tests stay #[ignore]'d; coverage runs the same suite | |
| # as `pr-checks.yml`'s `test` job. | |
| run: | | |
| cargo llvm-cov --workspace --lcov --output-path lcov.info | |
| cargo llvm-cov --manifest-path adbc/Cargo.toml --features ffi --lcov --output-path adbc-lcov.info | |
| # Codecov upload. | |
| # | |
| # `use_oidc: true` is tokenless, but it requires the repo to be | |
| # enrolled in Codecov's GitHub App with OIDC enabled in the | |
| # Codecov dashboard. Until that is set up, the action falls | |
| # back to anonymous upload which Codecov silently rate-limits | |
| # and may drop. `fail_ci_if_error: false` keeps the job green | |
| # in that case (we don't want a one-off Codecov outage to red- | |
| # light unrelated PRs) — but it does mean coverage data may not | |
| # actually land. Watch for the Codecov check on the first few | |
| # PRs to confirm uploads are flowing. | |
| - name: Upload to Codecov | |
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 | |
| with: | |
| files: lcov.info,adbc-lcov.info | |
| fail_ci_if_error: false | |
| use_oidc: true |