Skip to content

Conversation

martincostello
Copy link
Member

@martincostello martincostello commented May 9, 2025

Changes

  • Upgrade Go to 1.24.
  • Remove permissions from all jobs.
  • Avoid warning if no error logs found.
  • Allow manual dispatch and run OATS for PRs.
  • Remove obsolete version property from docker compose files.
  • Update .NET container ports from 80 to 8080 (docs).
  • Expose port 1433 for SQL Server.
  • Update leftover reference to .NET 6.
  • Modernise Dockerfile for .NET 8+.
  • Ignore docker compose build files.
  • Fix/update OATS queries/assertions.
  • Move all OATS tests to a single file to reduce execution time from ~13m to ~4m.

Merge requirement checklist

  • Unit tests added/updated
  • CHANGELOG.md file updated for non-trivial changes
  • Changes in public API reviewed (if applicable)

@martincostello
Copy link
Member Author

Hit my go knowledge wall here pretty fast 😅

@zeitlinger Is this something that needs fixing in the oats repo itself so the fix comes with the clone?

@zeitlinger
Copy link
Member

Hit my go knowledge wall here pretty fast 😅

@zeitlinger Is this something that needs fixing in the oats repo itself so the fix comes with the clone?

This OATs setup is deprecated - not sure if the question still applies when updated.

This is my reference setup - where mise installs the oats binary directly.
You can also use go install - but you don't need ginkgo and file uploading any more.

@martincostello
Copy link
Member Author

Ok cool, in that case I'll update this to use the other way when I get back to it.

@martincostello
Copy link
Member Author

Depends on grafana/oats#109.

@martincostello
Copy link
Member Author

martincostello commented Jun 2, 2025

OATS is basically working now - will rebase onto #138 and #139 once merged.

- Upgrade Go to 1.24.
- Remove permissions from all jobs.
- Avoid warning if no error logs found.
- Allow manual dispatch.
Run `go mod tidy` to see if that fixes things.
Try running it later.
Just while I don't know what the real fix is.
Didn't fix it, but it's further along with the first one.
Install OATS directly instead of cloning.
Consume changes from grafana/oats#109 to fix matrix usage.
Remove obsolete `version` property.
Update from .NET 6 to .NET 8.
.NET 8 changed the default container port to `8080`.
Update commands to run OATS tests.
Map port 8080 for ASP.NET Core.
Add a PowerShell script to run the OATS tests locally cross-platform.
Set the executable bit for macOS and Linux.
Remove references to non-existent compose file.
Avoid prerelease versions of the .NET SDK if installed locally.
Fix (and simplify) the ASP.NET Core dockerfile.
Fix timeout no longer being consumed from `TESTCASE_TIMEOUT` env var and instead use `--timeout` flag.
Container name is `lgtm` not `container`.
Fix names based on docker-otel-lgtm's .NET example.
Fix self-contained publish not working due to quotes.
Add OTLP logging.
Add whitespace to make things more readable.
Add log query (which needs to be fixed).
Configure logging in the right way.
Fix metric names.
Fix trace query for `GetError`.
Use the latest stable release of OATS.
Expose port 1433 so that the application can connect to it.
Fix incorrect attributes.
Update traceql to match HTTP test cases.
Then we know if we break things.
- Use primary constructors.
- Remove unused fields.
- Use structured logging.
- Use `await using`.
- Use HttpClientFactory.
- Use async methods where available.
- Use collection expressions.
Use `span.http.route` instead of `name`.
Combine the OATS tests into a single file to speed up the execution time by avoiding spinning containers up and down so much.
Pin OATS to v0.3.2 and configure renovate.
@martincostello martincostello marked this pull request as ready for review June 4, 2025 14:09
@martincostello martincostello requested a review from a team as a code owner June 4, 2025 14:09
Revert redundant change.
@martincostello martincostello enabled auto-merge (squash) June 4, 2025 14:17
Copy link
Contributor

@matt-hensley matt-hensley left a comment

Choose a reason for hiding this comment

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

:shipit:

@martincostello martincostello merged commit a646c7d into main Jun 4, 2025
10 checks passed
@martincostello martincostello deleted the fix-oats branch June 4, 2025 16:10
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.

3 participants