Skip to content

Commit 0feae7a

Browse files
committed
Disable test integration-tests-local-infrahub for now
1 parent 8fc4153 commit 0feae7a

File tree

1 file changed

+66
-64
lines changed

1 file changed

+66
-64
lines changed

.github/workflows/ci.yml

Lines changed: 66 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -213,77 +213,79 @@ jobs:
213213
env:
214214
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
215215

216-
integration-tests-local-infrahub:
217-
if: |
218-
always() && !cancelled() &&
219-
!contains(needs.*.result, 'failure') &&
220-
!contains(needs.*.result, 'cancelled') &&
221-
needs.files-changed.outputs.python == 'true' &&
222-
(github.base_ref == 'stable' || github.base_ref == 'develop')
223-
needs: ["files-changed", "yaml-lint", "python-lint"]
224-
runs-on:
225-
group: "huge-runners"
226-
timeout-minutes: 30
227-
steps:
228-
- name: "Check out repository code"
229-
uses: "actions/checkout@v4"
216+
# NOTE: Disabling this test for now because it's expected that we can't start the latest version of infrahub
217+
# with the current shipping version of infrahub-testcontainers
218+
# integration-tests-local-infrahub:
219+
# if: |
220+
# always() && !cancelled() &&
221+
# !contains(needs.*.result, 'failure') &&
222+
# !contains(needs.*.result, 'cancelled') &&
223+
# needs.files-changed.outputs.python == 'true' &&
224+
# (github.base_ref == 'stable' || github.base_ref == 'develop')
225+
# needs: ["files-changed", "yaml-lint", "python-lint"]
226+
# runs-on:
227+
# group: "huge-runners"
228+
# timeout-minutes: 30
229+
# steps:
230+
# - name: "Check out repository code"
231+
# uses: "actions/checkout@v4"
230232

231-
- name: "Extract target branch name"
232-
id: extract_branch
233-
run: echo "TARGET_BRANCH=${{ github.base_ref }}" >> $GITHUB_ENV
233+
# - name: "Extract target branch name"
234+
# id: extract_branch
235+
# run: echo "TARGET_BRANCH=${{ github.base_ref }}" >> $GITHUB_ENV
234236

235-
- name: "Checkout infrahub repository"
236-
uses: "actions/checkout@v4"
237-
with:
238-
repository: "opsmill/infrahub"
239-
path: "infrahub-server"
240-
ref: ${{ github.base_ref }}
241-
submodules: true
237+
# - name: "Checkout infrahub repository"
238+
# uses: "actions/checkout@v4"
239+
# with:
240+
# repository: "opsmill/infrahub"
241+
# path: "infrahub-server"
242+
# ref: ${{ github.base_ref }}
243+
# submodules: true
242244

243-
- name: Set up Python
244-
uses: actions/setup-python@v5
245-
with:
246-
python-version: "3.12"
245+
# - name: Set up Python
246+
# uses: actions/setup-python@v5
247+
# with:
248+
# python-version: "3.12"
247249

248-
- name: "Setup git credentials prior dev.build"
249-
run: |
250-
cd infrahub-server
251-
git config --global user.name 'Infrahub'
252-
git config --global user.email '[email protected]'
253-
git config --global --add safe.directory '*'
254-
git config --global credential.usehttppath true
255-
git config --global credential.helper /usr/local/bin/infrahub-git-credential
250+
# - name: "Setup git credentials prior dev.build"
251+
# run: |
252+
# cd infrahub-server
253+
# git config --global user.name 'Infrahub'
254+
# git config --global user.email '[email protected]'
255+
# git config --global --add safe.directory '*'
256+
# git config --global credential.usehttppath true
257+
# git config --global credential.helper /usr/local/bin/infrahub-git-credential
256258

257-
- name: "Set environment variables prior dev.build"
258-
run: |
259-
echo "INFRAHUB_BUILD_NAME=infrahub-${{ runner.name }}" >> $GITHUB_ENV
260-
RUNNER_NAME=$(echo "${{ runner.name }}" | grep -o 'ghrunner[0-9]\+' | sed 's/ghrunner\([0-9]\+\)/ghrunner_\1/')
261-
echo "PYTEST_DEBUG_TEMPROOT=/var/lib/github/${RUNNER_NAME}/_temp" >> $GITHUB_ENV
262-
echo "INFRAHUB_IMAGE_VER=local-${{ runner.name }}-${{ github.sha }}" >> $GITHUB_ENV
263-
echo "INFRAHUB_TESTING_IMAGE_VER=local-${{ runner.name }}-${{ github.sha }}" >> $GITHUB_ENV
264-
echo "INFRAHUB_TESTING_DOCKER_IMAGE=opsmill/infrahub" >> $GITHUB_ENV
259+
# - name: "Set environment variables prior dev.build"
260+
# run: |
261+
# echo "INFRAHUB_BUILD_NAME=infrahub-${{ runner.name }}" >> $GITHUB_ENV
262+
# RUNNER_NAME=$(echo "${{ runner.name }}" | grep -o 'ghrunner[0-9]\+' | sed 's/ghrunner\([0-9]\+\)/ghrunner_\1/')
263+
# echo "PYTEST_DEBUG_TEMPROOT=/var/lib/github/${RUNNER_NAME}/_temp" >> $GITHUB_ENV
264+
# echo "INFRAHUB_IMAGE_VER=local-${{ runner.name }}-${{ github.sha }}" >> $GITHUB_ENV
265+
# echo "INFRAHUB_TESTING_IMAGE_VER=local-${{ runner.name }}-${{ github.sha }}" >> $GITHUB_ENV
266+
# echo "INFRAHUB_TESTING_DOCKER_IMAGE=opsmill/infrahub" >> $GITHUB_ENV
265267

266-
- name: "Build container"
267-
run: |
268-
cd infrahub-server
269-
inv dev.build
268+
# - name: "Build container"
269+
# run: |
270+
# cd infrahub-server
271+
# inv dev.build
270272

271-
- name: "Setup environment"
272-
run: |
273-
pipx install poetry==1.8.5
274-
poetry config virtualenvs.create true --local
275-
pip install invoke toml codecov
273+
# - name: "Setup environment"
274+
# run: |
275+
# pipx install poetry==1.8.5
276+
# poetry config virtualenvs.create true --local
277+
# pip install invoke toml codecov
276278

277-
- name: "Install Package"
278-
run: "poetry install --all-extras"
279+
# - name: "Install Package"
280+
# run: "poetry install --all-extras"
279281

280-
- name: "Integration Tests"
281-
run: |
282-
echo "Running tests for version: $INFRAHUB_TESTING_IMAGE_VER"
283-
poetry run pytest --cov infrahub_sdk tests/integration/
282+
# - name: "Integration Tests"
283+
# run: |
284+
# echo "Running tests for version: $INFRAHUB_TESTING_IMAGE_VER"
285+
# poetry run pytest --cov infrahub_sdk tests/integration/
284286

285-
- name: "Upload coverage to Codecov"
286-
run: |
287-
codecov --flags integration-tests
288-
env:
289-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
287+
# - name: "Upload coverage to Codecov"
288+
# run: |
289+
# codecov --flags integration-tests
290+
# env:
291+
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)