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

Remove infrahub-sync #4200

Merged
merged 2 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .github/file-filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ backend_files: &backend_files
sdk_files: &sdk_files
- "python_sdk/**"

sync_files: &sync_files
- "sync/**"

infrahub_poetry_files: &infrahub_poetry_files
- "pyproject.toml"
- "poetry.lock"
Expand All @@ -27,10 +24,6 @@ python_sdk_poetry_files: &python_sdk_poetry_files
- "python_sdk/pyproject.toml"
- "python_sdk/poetry.lock"

sync_poetry_files: &sync_poetry_files
- "sync/pyproject.toml"
- "sync/poetry.lock"

frontend_files: &frontend_files
- "frontend/app/**"

Expand Down Expand Up @@ -83,14 +76,6 @@ sdk_all:
- *development_files
- *python_sdk_poetry_files

sync_all:
- *sync_files
- *sdk_files
- *backend_files
- *ci_config
- *development_files
- *sync_poetry_files

frontend_all:
- *frontend_files
- *ci_config
Expand Down
4 changes: 0 additions & 4 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
- changed-files:
- any-glob-to-any-file: ["python_sdk/**"]

"group/sync-engine":
- changed-files:
- any-glob-to-any-file: ["sync/**"]

"type/documentation":
- changed-files:
- any-glob-to-any-file: ["docs/**"]
1 change: 1 addition & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
description: "Issue related to the Python SDK"
color: "56e8e1"

# Bkohler: will be remove after I migrate all the issues using it
- name: "group/sync-engine"
description: "Issue related to the Synchronization engine"
color: "05b259"
Expand Down
52 changes: 0 additions & 52 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,12 @@ jobs:
frontend: ${{ steps.changes.outputs.frontend_all }}
helm: ${{ steps.changes.outputs.helm_all }}
sdk: ${{ steps.changes.outputs.sdk_all }}
sync: ${{ steps.changes.outputs.sync_all }}
e2e: ${{ steps.changes.outputs.e2e_all }}
python: ${{ steps.changes.outputs.python_all }}
javascript: ${{ steps.changes.outputs.javascript_all }}
yaml: ${{ steps.changes.outputs.yaml_all }}
infrahub_poetry_files: ${{ steps.changes.outputs.infrahub_poetry_files }}
python_sdk_poetry_files: ${{ steps.changes.outputs.python_sdk_poetry_files }}
sync_poetry_files: ${{ steps.changes.outputs.sync_poetry_files }}
github_workflows: ${{ steps.changes.outputs.github_workflows }}
e2e_tests: ${{ steps.changes.outputs.e2e_test_files }}
steps:
Expand Down Expand Up @@ -178,17 +176,6 @@ jobs:
with:
directory: "./python-sdk/"

sync-poetry-check:
if: |
needs.files-changed.outputs.sync_poetry_files == 'true' ||
github.ref_name == 'stable' ||
github.ref_name == 'develop'
needs:
- "files-changed"
uses: "./.github/workflows/poetry-check.yml"
with:
directory: "./sync/"

python-sdk-unit-tests:
strategy:
matrix:
Expand Down Expand Up @@ -283,45 +270,6 @@ jobs:
flag-name: python-sdk-integration
parallel: true

infrahub-sync-unit-tests:
strategy:
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
if: |
always() && !cancelled() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
needs.files-changed.outputs.sync == 'true'
needs: ["files-changed", "yaml-lint", "python-lint"]
runs-on: ubuntu-latest
timeout-minutes: 30
defaults:
run:
working-directory: sync/
steps:
- name: "Check out repository code"
uses: "actions/checkout@v4"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: "Setup environment"
run: |
pipx install poetry
poetry config virtualenvs.prefer-active-python true
pip install invoke toml
- name: "Install Package"
run: "poetry install"
- name: "Pylint Tests"
run: "poetry run pylint infrahub_sync/"
# - name: "Mypy Tests"
# run: "poetry run mypy --show-error-codes infrahub_sync/"


backend-tests-unit:
if: |
always() && !cancelled() &&
Expand Down
201 changes: 0 additions & 201 deletions sync/LICENSE.txt

This file was deleted.

Loading
Loading