Skip to content

Fix mssql docker tests v4#727

Merged
ocelotl merged 2 commits intoopen-telemetry:mainfrom
owais:fix-mssql-docker-tests-v4
Oct 12, 2021
Merged

Fix mssql docker tests v4#727
ocelotl merged 2 commits intoopen-telemetry:mainfrom
owais:fix-mssql-docker-tests-v4

Conversation

@owais
Copy link
Contributor

@owais owais commented Oct 12, 2021

Description

We were giving mssql server 10 seconds to start before creating the test
database. It now takes Github CI more than 10 seconds to start the mssql
server. Instead of increasing the leeway with guesses, this commit moves
the creation of test database from docker compose to the python test suite.
This allows the docker image to come up first and then create the DB
inside the test suite with proper retry mechanism that is already in
place.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Existing tests

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

These were not really needed and got in by mistake.
@owais owais force-pushed the fix-mssql-docker-tests-v4 branch from e5d242e to dfcbf65 Compare October 12, 2021 12:29
@owais owais added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Oct 12, 2021
@owais owais force-pushed the fix-mssql-docker-tests-v4 branch 2 times, most recently from f6fcaea to aa38343 Compare October 12, 2021 12:41
We were giving mssql server 10 seconds to start before creating the test
database. It now takes Github CI more than 10 seconds to start the mssql
server. Instead of increasing the leeway with guesses, this commit moves
the creation of test database from docker compose to the python test suite.
This allows the docker image to come up first and then create the DB
inside the test suite with proper retry mechanism that is already in
place.
@owais owais force-pushed the fix-mssql-docker-tests-v4 branch from aa38343 to b4a11ca Compare October 12, 2021 12:43
@owais owais marked this pull request as ready for review October 12, 2021 12:44
@owais owais requested a review from a team October 12, 2021 12:44
@owais owais mentioned this pull request Oct 12, 2021
11 tasks
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo sh -c "echo 'deb [arch=amd64,armhf,arm64] https://packages.microsoft.com/ubuntu/20.04/prod focal main' > /etc/apt/sources.list.d/mssql-release.list"
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql17
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These changes are not really required. These were needed to fix related issues on an Ubuntu VM but the image we are using in CI doesn't need this.

Changes from #726

@ocelotl ocelotl merged commit b41a917 into open-telemetry:main Oct 12, 2021
@owais owais deleted the fix-mssql-docker-tests-v4 branch October 12, 2021 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants