Measure Disk Usage (Master) [d56a556e5bcd048637f28dc6feccae56d11d2d94] #163
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
| name: Measure Disk Usage (Master) | |
| run-name: "Measure Disk Usage (Master) [${{ github.sha }}]" | |
| # Temporary crutch: emits master disk-usage telemetry on .deps/ changes. | |
| # The main measure-disk-usage.yml workflow subscribes to resolve-build-deps via | |
| # workflow_run, but resolve-build-deps no longer runs on master pushes. This | |
| # workflow restores the master telemetry path until measure-disk-usage.yml is | |
| # reworked to subscribe to .deps/ changes directly. | |
| on: | |
| push: | |
| branches: | |
| - master | |
| env: | |
| PYTHON_VERSION: "3.13" | |
| INTEGRATIONS_WHEELS_STORAGE: "stable" | |
| jobs: | |
| measure-disk-usage: | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| contents: read | |
| actions: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python ${{ env.PYTHON_VERSION }} | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Get Datadog credentials | |
| id: dd-sts | |
| uses: DataDog/dd-sts-action@2e8187910199bd93129520183c093e19aa585c75 # v1.0.0 | |
| with: | |
| policy: integrations-core-api-key | |
| - name: Install ddev | |
| uses: ./.github/actions/setup-ddev | |
| with: | |
| install-mode: local | |
| cache-profile: local-ddev-base | |
| - name: Configure ddev | |
| run: ddev config override | |
| - name: Measure disk usage (Uncompressed) | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: ddev -v size status --commit "${{ github.sha }}" --format json --to-dd-key ${{ steps.dd-sts.outputs.api_key }} | |
| - name: Measure disk usage (Compressed) | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: ddev -v size status --commit "${{ github.sha }}" --format json --to-dd-key ${{ steps.dd-sts.outputs.api_key }} --compressed | |
| - name: Upload JSON uncompressed sizes artifact | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: status_uncompressed.json | |
| path: status_uncompressed.json | |
| if-no-files-found: error | |
| - name: Upload JSON compressed sizes artifact | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: status_compressed.json | |
| path: status_compressed.json | |
| if-no-files-found: error |