Skip to content

Commit ccb7067

Browse files
committed
fix: source bashrc before discovering YDB nodes in SLO workflow
Signed-off-by: Vladislav Polyakov <[email protected]>
1 parent 9e79a8d commit ccb7067

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/slo.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,23 @@ jobs:
8989
go build -o .bin/${{matrix.sdk.id}}_linux_amd64 -ldflags "-X \"main.ref=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}\" -X \"main.label=${{matrix.sdk.label}}\" -X \"main.jobName=${{matrix.sdk.name}}\"" ${{matrix.sdk.path}}
9090
chmod +x .bin/${{matrix.sdk.id}}_linux_amd64
9191
92+
- name: Update dependencies
93+
run: |
94+
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
95+
sudo apt-get update
96+
sudo apt-get install ca-certificates curl
97+
sudo install -m 0755 -d /etc/apt/keyrings
98+
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
99+
sudo chmod a+r /etc/apt/keyrings/docker.asc
100+
101+
echo \
102+
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
103+
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
104+
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
105+
106+
sudo apt-get update
107+
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
108+
92109
- name: Inititialize YDB SLO
93110
uses: ydb-platform/ydb-slo-action/init@2dc
94111
with:
@@ -105,6 +122,16 @@ jobs:
105122
sleep 30
106123
docker ps -a
107124
125+
- name: List ports
126+
run: |
127+
netstat -tuln
128+
129+
- name: Discovery nodes
130+
run: |
131+
curl -sSL https://install.ydb.tech/cli | bash
132+
source "/home/runner/.bashrc"
133+
ydb -e grpc://localhost:2136 -d /Root/testdb discovery list
134+
108135
- name: Prepare SLO Database
109136
run: |
110137
./tests/slo/.bin/${{matrix.sdk.id}}_linux_amd64 create grpc://localhost:2136 /Root/testdb

0 commit comments

Comments
 (0)