Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
outputs:
deps_cache_key: ${{ steps.cache-key.outputs.deps_cache_key }}
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

Expand All @@ -31,7 +31,7 @@ jobs:

- name: Try to get cached BlazingMQ build artifacts
id: cache-restore
uses: actions/cache/restore@v6
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: blazingmq_artifacts.tar.gz
key: ${{ steps.cache-key.outputs.deps_cache_key }}
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
- name: Cache built BlazingMQ build artifacts
id: cache-save
if: steps.cache-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v6
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: blazingmq_artifacts.tar.gz
key: ${{ steps.cache-key.outputs.deps_cache_key }}
Expand All @@ -99,12 +99,12 @@ jobs:
- "3.13"
- "3.14"
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Try to get cached BlazingMQ build artifacts
id: cache-restore
uses: actions/cache/restore@v6
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: blazingmq_artifacts.tar.gz
key: ${{ needs.blazingmq-dependency.outputs.deps_cache_key }}
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
libgmock-dev \
libz-dev
- name: Log in to GHCR
uses: docker/login-action@v4
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -189,12 +189,12 @@ jobs:
needs: blazingmq-dependency
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Try to get cached BlazingMQ build artifacts
id: cache-restore
uses: actions/cache/restore@v6
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: blazingmq_artifacts.tar.gz
key: ${{ needs.blazingmq-dependency.outputs.deps_cache_key }}
Expand Down Expand Up @@ -237,12 +237,12 @@ jobs:
needs: blazingmq-dependency
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Try to get cached BlazingMQ build artifacts
id: cache-restore
uses: actions/cache/restore@v6
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: blazingmq_artifacts.tar.gz
key: ${{ needs.blazingmq-dependency.outputs.deps_cache_key }}
Expand All @@ -263,7 +263,7 @@ jobs:
sudo chmod 777 /cores
echo "/cores/%e.%p.%s.%t" | sudo tee /proc/sys/kernel/core_pattern
- name: Log in to GHCR
uses: docker/login-action@v4
uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -292,7 +292,7 @@ jobs:
if: always()
run: docker rm -f bmqbrkr
- name: Output code coverage summary
uses: irongut/CodeCoverageSummary@v1.3.0
uses: irongut/CodeCoverageSummary@51cc3a756ddcd398d447c044c02cb6aa83fdae95 # v1.3.0
with:
filename: coverage*.xml
- name: Upload broker logs as artifacts
Expand All @@ -301,7 +301,7 @@ jobs:
mkdir -p bmq/logs
docker logs bmqbrkr > bmq/logs/broker_stdout.log 2> bmq/logs/broker_stderr.log || true
docker cp bmqbrkr:/var/local/bmq/logs/. bmq/logs/ || true
- uses: actions/upload-artifact@v7
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: failure()
with:
name: broker_logs
Expand All @@ -310,7 +310,7 @@ jobs:
compression-level: 9
- name: Upload broker core dump as artifacts
if: failure()
uses: actions/upload-artifact@v7
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: core_dumps
path: /cores
Expand Down
34 changes: 17 additions & 17 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

Expand All @@ -36,17 +36,17 @@ jobs:
BLAZINGMQ_PYTHON_NO_PKGCONFIG: '1'
run: uv build --sdist

- uses: actions/upload-artifact@v7
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: dist-sdist
path: dist

- uses: actions/upload-artifact@v7
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: tests-sdist
path: tests

- uses: actions/upload-artifact@v7
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: bin-sdist
path: bin
Expand All @@ -73,15 +73,15 @@ jobs:
cibw_arch: ${{ fromJSON(needs.choose_architectures.outputs.cibw_arches) }}

steps:
- uses: actions/download-artifact@v8
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: dist-sdist
path: dist
- uses: actions/download-artifact@v8
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: tests-sdist
path: tests
- uses: actions/download-artifact@v8
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: bin-sdist
path: bin
Expand All @@ -92,13 +92,13 @@ jobs:
run: |
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
- name: Build wheels
uses: pypa/cibuildwheel@v4.2.1
uses: pypa/cibuildwheel@e090b81e30c4d855ea63bf4b6e59204c09a101ae # v4.2.1
env:
CIBW_ARCHS_LINUX: ${{ matrix.cibw_arch }}
CIBW_BUILD: ${{ matrix.cibw_python }}-*
CIBW_TEST_COMMAND: python3 -m pytest {project}/tests/unit
CIBW_TEST_REQUIRES: pytest mock pkgconfig
- uses: actions/upload-artifact@v7
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: dist-Linux-${{ matrix.cibw_python }}-${{ matrix.cibw_arch }}
path: ./wheelhouse/*.whl
Expand All @@ -116,15 +116,15 @@ jobs:
cibw_arch: ["arm64"]

steps:
- uses: actions/download-artifact@v8
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: dist-sdist
path: dist
- uses: actions/download-artifact@v8
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: tests-sdist
path: tests
- uses: actions/download-artifact@v8
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: bin-sdist
path: bin
Expand All @@ -136,7 +136,7 @@ jobs:
run: |
echo "CFLAGS=-target arm64-apple-macos14" >> $GITHUB_ENV
- name: Build wheels
uses: pypa/cibuildwheel@v4.2.1
uses: pypa/cibuildwheel@e090b81e30c4d855ea63bf4b6e59204c09a101ae # v4.2.1
env:
CIBW_ARCHS_MACOS: ${{ matrix.cibw_arch }}
CIBW_BUILD: ${{ matrix.cibw_python }}-*
Expand All @@ -146,7 +146,7 @@ jobs:
MACOSX_DEPLOYMENT_TARGET: "14.0"
SYSTEM_VERSION_COMPAT: 0

- uses: actions/upload-artifact@v7
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: dist-MacOS-${{ matrix.cibw_python }}-${{ matrix.cibw_arch }}
path: ./wheelhouse/*.whl
Expand All @@ -155,7 +155,7 @@ jobs:
needs: [build_wheels, build_wheels_macos, build_sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/upload-artifact/merge@v7
- uses: actions/upload-artifact/merge@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: dist
pattern: dist-*
Expand All @@ -167,11 +167,11 @@ jobs:
github.event_name == 'release' && github.event.action == 'published'
|| github.event_name == 'workflow_dispatch'
steps:
- uses: actions/download-artifact@v8
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: dist
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
- uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
with:
skip_existing: true
password: ${{ secrets.PYPI_PASSWORD }}
22 changes: 11 additions & 11 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@ jobs:
- actions
- python
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
uses: github/codeql-action/init@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
with:
languages: ${{ matrix.language }}
build-mode: none

- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v4
uses: github/codeql-action/analyze@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
with:
category: /language:${{ matrix.language }}

Expand All @@ -57,7 +57,7 @@ jobs:
outputs:
deps_cache_key: ${{ steps.cache-key.outputs.deps_cache_key }}
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

Expand All @@ -67,7 +67,7 @@ jobs:

- name: Try to get cached BlazingMQ build artifacts
id: cache-restore
uses: actions/cache/restore@v6
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: blazingmq_artifacts.tar.gz
key: ${{ steps.cache-key.outputs.deps_cache_key }}
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
- name: Cache built BlazingMQ build artifacts
id: cache-save
if: steps.cache-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v6
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: blazingmq_artifacts.tar.gz
key: ${{ steps.cache-key.outputs.deps_cache_key }}
Expand All @@ -129,13 +129,13 @@ jobs:
contents: read
security-events: write
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Try to get cached BlazingMQ build artifacts
id: cache-restore
uses: actions/cache/restore@v6
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: blazingmq_artifacts.tar.gz
key: ${{ needs.blazingmq-dependency.outputs.deps_cache_key }}
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
libz-dev

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
uses: github/codeql-action/init@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
with:
languages: c-cpp
build-mode: manual
Expand All @@ -190,7 +190,7 @@ jobs:
# filters do not apply to built languages. So analyze without uploading,
# drop the generated file's alerts, and upload the remainder.
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v4
uses: github/codeql-action/analyze@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
with:
category: /language:c-cpp
output: sarif-results
Expand Down Expand Up @@ -227,7 +227,7 @@ jobs:
done

- name: Upload CodeQL results
uses: github/codeql-action/upload-sarif@v4
uses: github/codeql-action/upload-sarif@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
with:
sarif_file: sarif-results
category: /language:c-cpp
4 changes: 2 additions & 2 deletions .github/workflows/dco-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
steps:
- name: Get PR Commits
id: "get-pr-commits"
uses: tim-actions/get-pr-commits@master
uses: tim-actions/get-pr-commits@198af03565609bb4ed924d1260247b4881f09e7d # 26 Feb 2024
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: DCO Check
uses: tim-actions/dco@master
uses: tim-actions/dco@f2279e6e62d5a7d9115b0cb8e837b777b1b02e21 # 10 Jun 2021
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}
2 changes: 1 addition & 1 deletion .github/workflows/news-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Check for news entry
steps:
- name: "Check for news entry"
uses: brettcannon/check-for-changed-files@v1
uses: brettcannon/check-for-changed-files@d85c64d17b3c1d0ac57c9cc46ea39399b0d6fa71 # v1.2.2
with:
file-pattern: "news/*.rst"
skip-label: "skip news"
Expand Down
Loading