forked from DataDog/dd-trace-rb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* master: (122 commits) DEBUG-2334 Probe Builder for dynamic instrumentation (DataDog#3921) Fix matrix format Remove GraphQL error test that provides low value Add missing GraphQL and Hanami tests to CI Exclude linter Skip JRuby which does not respond to fork Add backtrace Add SSI entry point Remove before merge Update PR body Use PAT [PROF-10422] Fix flaky GVL profiling integration spec [🤖] Update Latest Dependency: https://github.com/DataDog/dd-trace-rb/actions/runs/10958098108 [NO-TICKET] Fix flaky spec in profiler due to race Remove obsolete group [🤖] Lock Dependency: https://github.com/DataDog/dd-trace-rb/actions/runs/10956486485 Remove obsolete task Raise ArgumentError when trying to use GVL profiling on unsupported Rubies Update gemfiles/* Cleanup gemfile ...
- Loading branch information
Showing
1,188 changed files
with
17,956 additions
and
2,483 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
dependencies: | ||
- Gemfile | ||
- Appraisals | ||
- datadog.gemspec | ||
- tasks/appraisal.rake | ||
- .github/workflows/lock-dependency.yml | ||
- lib/datadog/version.rb | ||
- appraisal/** | ||
- gemfiles/** |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
name: Lock Dependency | ||
|
||
# TODO: Make this job mandatory | ||
# TODO: Make this on workflow_dispatch | ||
|
||
on: | ||
# Limitation about `paths` types: | ||
# > https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#git-diff-comparisons | ||
push: | ||
branches-ignore: | ||
- master | ||
- release | ||
- '*-stable' | ||
pull_request: | ||
# Run this job when a PR is opened, covering the scenario where branch is ready and pushed before PR is opened. | ||
types: | ||
- opened | ||
|
||
|
||
# TODO: Improve concurrency between push event and pull_request event | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
pr: | ||
name: Pull Request attached | ||
runs-on: ubuntu-latest | ||
outputs: | ||
pr_found: ${{ steps.pr.outputs.pr_found }} | ||
pr_base_ref: ${{ steps.pr.outputs.pr.base.ref }} | ||
steps: | ||
# Limitation with pull_request trigger: https://github.com/8BitJonny/gh-get-current-pr/tree/3.0.0/?tab=readme-ov-file#limitations | ||
- uses: 8BitJonny/gh-get-current-pr@3.0.0 | ||
id: pr | ||
with: | ||
filterOutClosed: true # Don't trigger on commits with closed PRs, including merges into `master`. | ||
|
||
dependency: | ||
name: Depenedency changes | ||
needs: pr | ||
if: ${{ needs.pr.outputs.pr_found == 'true' }} | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changes: ${{ steps.changes.outputs.dependencies }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dorny/paths-filter@v3 | ||
id: changes | ||
with: | ||
# This is the best effort to get the diff comparison. | ||
# The result remains time-sensitive since the `base` is constantly changing and | ||
# the PR cannot be guaranteed to be up-to-date. | ||
# | ||
# Unless enable `Require branches to be up to date before merging` in the repository rule settings | ||
base: ${{ needs.pr.outputs.pr_base_ref }} | ||
filters: .github/dependency_filters.yml | ||
|
||
lock: | ||
runs-on: ubuntu-latest | ||
needs: dependency | ||
if: ${{ needs.dependency.outputs.changes == 'true' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
engine: | ||
# ADD NEW RUBIES HERE | ||
- name: ruby | ||
version: '3.4' | ||
- name: ruby | ||
version: '3.3' | ||
- name: ruby | ||
version: '3.2' | ||
- name: ruby | ||
version: '3.1' | ||
- name: ruby | ||
version: '3.0' | ||
- name: ruby | ||
version: '2.7' | ||
- name: ruby | ||
version: '2.6' | ||
- name: ruby | ||
version: '2.5' | ||
- name: jruby | ||
version: '9.4' | ||
- name: jruby | ||
version: '9.3' | ||
- name: jruby | ||
version: '9.2' | ||
container: | ||
image: ghcr.io/datadog/images-rb/engines/${{ matrix.engine.name }}:${{ matrix.engine.version }} | ||
env: | ||
BUNDLE_WITHOUT: check | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
ruby -v | ||
gem -v | ||
bundler -v | ||
- run: bundle install | ||
|
||
# TODO: Migrate away from `appraisal` | ||
- run: bundle exec appraisal generate | ||
- run: bundle exec rake dependency:lock | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: lock-dependency-${{ github.run_id }}-${{ matrix.engine.name }}-${{ matrix.engine.version }} | ||
path: gemfiles/${{ matrix.engine.name }}_${{ matrix.engine.version }}* | ||
retention-days: 1 | ||
|
||
# TODO: Change token to trigger workflow automation | ||
# > New commit by GITHUB_TOKEN does not trigger workflow automation to prevent infinite loop | ||
commit: | ||
name: Commit changes | ||
needs: lock | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GHA_PAT }} | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
path: gemfiles | ||
pattern: lock-dependency-${{ github.run_id }}-* | ||
merge-multiple: true | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
file_pattern: 'gemfiles/*' | ||
commit_message: "[🤖] Lock Dependency: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" |
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
name: "Update Latest Dependency" | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * 0' # Every Sunday at midnight | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: read | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
engine: | ||
# ADD NEW RUBIES HERE | ||
- name: ruby | ||
version: '3.4' | ||
- name: ruby | ||
version: '3.3' | ||
- name: ruby | ||
version: '3.2' | ||
- name: ruby | ||
version: '3.1' | ||
- name: ruby | ||
version: '3.0' | ||
- name: ruby | ||
version: '2.7' | ||
- name: ruby | ||
version: '2.6' | ||
- name: ruby | ||
version: '2.5' | ||
- name: jruby | ||
version: '9.4' | ||
- name: jruby | ||
version: '9.3' | ||
- name: jruby | ||
version: '9.2' | ||
container: | ||
image: "ghcr.io/datadog/images-rb/engines/${{ matrix.engine.name }}:${{ matrix.engine.version }}" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Output Ruby version | ||
run: ruby -v | ||
|
||
- name: Bundle | ||
run: bundle install | ||
|
||
- name: Update latest | ||
run: bundle exec rake edge:latest | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: 'gha${{ github.run_id }}-datadog-gem-${{ matrix.engine.name }}-${{ matrix.engine.version }}' | ||
path: gemfiles/${{ matrix.engine.name }}_${{ matrix.engine.version }}_* | ||
retention-days: 1 | ||
|
||
aggregate: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download artifacts for all runtimes | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: gemfiles | ||
pattern: gha${{ github.run_id }}-datadog-gem-* | ||
merge-multiple: true | ||
|
||
- run: git diff | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
token: ${{ secrets.GHA_PAT }} | ||
branch: auto-generate/update-latest-dependencies | ||
title: '[🤖] Update Latest Dependency' | ||
base: master | ||
labels: dev/internal, integrations | ||
commit-message: "[🤖] Update Latest Dependency: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
delete-branch: true | ||
body: | | ||
_This is an auto-generated PR from [here](https://github.com/DataDog/dd-trace-rb/blob/master/.github/workflows/update-latest-dependency.yml), which creates a pull request that will be continually updated with new changes until it is merged or closed)_ | ||
The PR updates latest versions of defined dependencies. Please review the changes and merge when ready. |
Oops, something went wrong.