diff --git a/.ci/snapshoty.yml b/.ci/snapshoty.yml deleted file mode 100644 index ef49bdf10..000000000 --- a/.ci/snapshoty.yml +++ /dev/null @@ -1,53 +0,0 @@ - ---- - -# Version of configuration to use -version: '1.0' - -# You can define a Google Cloud Account to use -account: - # Project id of the service account - project: '${GCS_PROJECT}' - # Private key id of the service account - private_key_id: '${GCS_PRIVATE_KEY_ID}' - # Private key of the service account - private_key: '${GCS_PRIVATE_KEY}' - # Email of the service account - client_email: '${GCS_CLIENT_EMAIL}' - # URI token - token_uri: 'https://oauth2.googleapis.com/token' - -x-metadata: &metadata - # Define static custom metadata - - name: 'custom' - data: - project: 'apm-agent-dotnet' - component: 'agent' - # Add git metadata - - name: 'git' - # Add github_actions metadata - - name: 'github_actions' - - -# List of artifacts -artifacts: - # Path to use for artifacts discovery - - path: './build/output' - # Files pattern to match - files_pattern: 'elastic_apm_profiler_(?P\d+\.\d+\.\d+)-(?P[\w\.]+)-(?P\w+)-(?P\w+)\.zip' - # File layout on GCS bucket - output_pattern: '{project}/{github_branch_name}/elastic-apm-dotnet-profiler-{app_version}-{app_version}-{os}-{arch}-{github_sha_short}.jar' - # List of metadata processors to use. - metadata: *metadata - - path: './build/output' - files_pattern: 'ElasticApmAgent_(?P\d+\.\d+\.\d+)-(?P[\w\.]+)\.zip' - output_pattern: '{project}/{github_branch_name}/elastic-apm-dotnet-agent-{app_version}-{revision}-{github_sha_short}.zip' - metadata: *metadata - - path: './build/output/_packages' - files_pattern: 'Elastic\.Apm\.(?P[\w\.]*)\.(?P\d+\.\d+\.\d+)-(?P[\w\.]+)(-(?P\w+)-(?P[\d-]+))?\.nupkg' - output_pattern: '{project}/{github_branch_name}/elastic-apm-dotnet-{component}-{app_version}-{revision}-{github_sha_short}.nupkg' - metadata: *metadata - - path: './build/output/_packages' - files_pattern: 'Elastic\.Apm\.(?P\d+\.\d+\.\d+)-(?P[\w\.]+)(-(?P\w+)-(?P[\d-]+))?\.nupkg' - output_pattern: '{project}/{github_branch_name}/elastic-apm-dotnet-{app_version}-{revision}-{github_sha_short}.nupkg' - metadata: *metadata diff --git a/.github/workflows/README.md b/.github/workflows/README.md index 2d8ddf3b0..9ec06ba2d 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -7,10 +7,6 @@ There are 4 main stages that run on GitHub actions: * Test * Release -There are some other stages that run for every push on the main branches: - -* [Snapshoty](./snapshoty.yml) - ### Scenarios * Tests should be triggered on branch, tag and PR basis. @@ -39,7 +35,7 @@ The tag release follows the naming convention: `v...`, wher ### OpenTelemetry -There is a GitHub workflow in charge to populate what the workflow run in terms of jobs and steps. Those details can be seen in [here](https://ela.st/oblt-ci-cd-stats) (**NOTE**: only available for Elasticians). +Every workflow and its logs are exported to OpenTelemetry traces/logs/metrics. Those details can be seen [here](https://ela.st/oblt-ci-cd-stats) (**NOTE**: only available for Elasticians). ## Bump automation diff --git a/.github/workflows/snapshoty.yml b/.github/workflows/snapshoty.yml deleted file mode 100644 index d16216ba3..000000000 --- a/.github/workflows/snapshoty.yml +++ /dev/null @@ -1,43 +0,0 @@ ---- -# Publish a snapshot. A "snapshot" is a packaging of the latest *unreleased* APM agent, -# published to a known GCS bucket for use in edge demo/test environments. -name: snapshoty - -on: - workflow_run: - workflows: ['test-linux'] - types: - - completed - branches: - - main - -permissions: - contents: read - -jobs: - upload: - runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' }} - steps: - - uses: actions/checkout@v4 - - # used by opbeans .NET to reference the on commit nuget packages - # TODO: update opbeans to use our feedz.io packages - - name: Retrieve the artifact uploaded from `test-linux.yml` workflow - uses: actions/download-artifact@v4 - with: - name: snapshoty-linux - path: build/output - github-token: ${{ secrets.GITHUB_TOKEN }} - run-id: ${{ github.event.workflow_run.id }} - - - name: Display structure of downloaded files - run: find build -type f - - - name: Publish snaphosts - uses: elastic/apm-pipeline-library/.github/actions/snapshoty-simple@current - with: - config: '.ci/snapshoty.yml' - vaultUrl: ${{ secrets.VAULT_ADDR }} - vaultRoleId: ${{ secrets.VAULT_ROLE_ID }} - vaultSecretId: ${{ secrets.VAULT_SECRET_ID }} diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index 837f7607f..4298e4b9e 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -40,13 +40,6 @@ jobs: - name: Package run: ./build.sh pack - - - uses: actions/upload-artifact@v4 - if: github.event_name == 'push' && startswith(github.ref, 'refs/heads') - with: - name: snapshoty-linux - path: build/output/* - retention-days: 1 tests: runs-on: ubuntu-latest