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

[receiver/sqlquery] Decrease time of running integration tests #37624

Merged
merged 3 commits into from
Feb 7, 2025

Conversation

Grandys
Copy link
Contributor

@Grandys Grandys commented Jan 31, 2025

Description

Improvements to integration test:

  1. Reduced test execution time by changing the behavior from starting and shutting down the database container for each test case to starting the container once and then running all tests for the given engine. Gain ~22s:

Main job:

DONE 47 tests, 8 skipped in 136.005s

PR job

DONE 44 tests, 4 skipped in 114.374s
  1. Updated the Oracle container from gvenzl/oracle-xe:21-slim-faststart to gvenzl/oracle-free:slim-faststart, primarily to support ARM architecture.

Testing

  • Ran tests for Oracle and SQL Server locally to ensure they are not broken.

@Grandys Grandys requested review from dmitryax, crobert-1 and a team as code owners January 31, 2025 17:37
@github-actions github-actions bot added the receiver/sqlquery SQL query receiver label Jan 31, 2025
@crobert-1 crobert-1 added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jan 31, 2025
@Grandys
Copy link
Contributor Author

Grandys commented Feb 5, 2025

@dmitryax @crobert-1
Can you take a look? I have POC for #36328, where I branched from this commit

Copy link
Member

@crobert-1 crobert-1 left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for the help here @Grandys!

receiver/sqlqueryreceiver/integration_test.go Show resolved Hide resolved
@crobert-1 crobert-1 added the ready to merge Code review completed; ready to merge by maintainers label Feb 5, 2025
@songy23 songy23 merged commit 769c4c9 into open-telemetry:main Feb 7, 2025
174 checks passed
@github-actions github-actions bot added this to the next release milestone Feb 7, 2025
chengchuanpeng pushed a commit to chengchuanpeng/opentelemetry-collector-contrib that referenced this pull request Feb 8, 2025
…telemetry#37624)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Improvements to integration test:
1. Reduced test execution time by changing the behavior from starting
and shutting down the database container for each test case to starting
the container **once** and then running all tests for the given engine.
Gain ~22s:

[Main
job](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/13077774968/job/36494091929):
 ```
DONE 47 tests, 8 skipped in 136.005s
```
[PR job](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/13077857640/job/36494335331?pr=37624)
```
DONE 44 tests, 4 skipped in 114.374s
```  

2. Updated the Oracle container from [gvenzl/oracle-xe:21-slim-faststart](https://hub.docker.com/r/gvenzl/oracle-xe) to [gvenzl/oracle-free:slim-faststart](https://hub.docker.com/r/gvenzl/oracle-free), primarily to support ARM architecture.


<!--Describe what testing was performed and which tests were added.-->
#### Testing
* Ran tests for Oracle and SQL Server locally to ensure they are not broken.

Co-authored-by: Curtis Robert <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers receiver/sqlquery SQL query receiver Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants