Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output supported versions #3058

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

quinna-h
Copy link
Contributor

@quinna-h quinna-h commented Dec 24, 2024

What does this PR do?

  • Runs the script .github/workflows/apps/output_integration_versions.go
    • This uses the minimum version stated in the integration_go.mod, and the maximum from go list -m -versions <package>
  • Adds the Supported Versions workflow which runs only after Smoke Tests successfully passes on main
    • This is since Smoke Tests tests that ddtrace works with the latest versions of the packages. So if Smoke Tests passed, we can safely assume that latest works.

TODO:

  • Change the workflow to not be tied to just Smoke Tests (we don't necessarily want it to run after every successful Smoke Tests run on main, as this would run several times a day).
  • Consider mapping repositories -> package name

Motivation

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.
  • For internal contributors, a matching PR should be created to the v2-dev branch and reviewed by @DataDog/apm-go.

Unsure? Have a question? Request a review!

# note: This will only run when there *are* changes to integration versions
- name: Create Pull Request
id: pr
uses: peter-evans/create-pull-request@v6

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Code Vulnerability

Workflow depends on a GitHub actions pinned by tag (...read more)

View in Datadog  Leave us feedback  Documentation

GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v4

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Code Vulnerability

Workflow depends on a GitHub actions pinned by tag (...read more)

View in Datadog  Leave us feedback  Documentation

@@ -0,0 +1,44 @@
name: Supported Versions
on:
workflow_run:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Code Vulnerability

Dangerous GitHub actions trigger (...read more)

View in Datadog  Leave us feedback  Documentation

@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Dec 24, 2024

Datadog Report

Branch report: quinna/add-supported-versions-workflow
Commit report: bb65e34
Test service: dd-trace-go

✅ 0 Failed, 5121 Passed, 70 Skipped, 2m 27.75s Total Time

@pr-commenter
Copy link

pr-commenter bot commented Dec 24, 2024

Benchmarks

Benchmark execution time: 2024-12-26 23:54:51

Comparing candidate commit 827f52f in PR branch quinna/add-supported-versions-workflow with baseline commit d393324 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 59 metrics, 0 unstable metrics.

func main() {
goModPath := "integration_go.mod" // path to integration_go.mod
outputPath := "supported_versions.md"
instrumentedSet := map[string]struct{}{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -42,15 +42,13 @@ require (
github.com/gocql/gocql v1.6.0
github.com/gofiber/fiber/v2 v2.52.5
github.com/gomodule/redigo v1.8.9
github.com/google/pprof v0.0.0-20230817174616-7a8ec2ada47b
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably put these changes in a separate PR

@quinna-h quinna-h requested a review from rarguelloF January 2, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant