mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-30 21:56:07 +08:00
Fix mssql docker tests v4 (#727)
* Remove unneded CI steps These were not really needed and got in by mistake. * Fix broken mssql integration tests 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.
This commit is contained in:
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
@ -84,13 +84,6 @@ jobs:
|
||||
python-version: 3.9
|
||||
- name: Install tox
|
||||
run: pip install -U tox
|
||||
- name: Prep mssql driver
|
||||
if: ${{ matrix.tox-environment == 'docker-tests' }}
|
||||
run: |
|
||||
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
|
||||
- name: Install libsnappy-dev
|
||||
if: ${{ matrix.tox-environment == 'lint' }}
|
||||
run: sudo apt-get install -y libsnappy-dev
|
||||
|
Reference in New Issue
Block a user