-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3973 from opsmill/bab-merge-stable-into-develop
Merge stable into develop
- Loading branch information
Showing
50 changed files
with
387 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,8 @@ jobs: | |
steps: | ||
- name: "Check out repository code" | ||
uses: "actions/checkout@v4" | ||
with: | ||
token: ${{ secrets.GH_INFRAHUB_BOT_TOKEN }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
|
@@ -37,15 +39,13 @@ jobs: | |
run: | | ||
pipx install poetry | ||
poetry config virtualenvs.prefer-active-python true | ||
pip install invoke toml | ||
- name: "Install Package" | ||
run: "poetry install --all-extras" | ||
|
||
- name: "Update Docker Env variable in docker-compose.yml file" | ||
run: "invoke dev.gen-config-env -u" | ||
run: "poetry run invoke dev.gen-config-env -u" | ||
- name: "Update Infrahub Image Version in docker-compose.yml file" | ||
run: "invoke dev.update-docker-compose" | ||
|
||
run: "poetry run invoke dev.update-docker-compose" | ||
- name: Commit docker-compose.yml | ||
uses: github-actions-x/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...end/infrahub/message_bus/messages/proposed_change/request_proposedchange_dataintegrity.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from .base_with_diff import BaseProposedChangeWithDiffMessage | ||
|
||
|
||
class RequestProposedChangeDataIntegrity(BaseProposedChangeWithDiffMessage): | ||
"""Sent trigger data integrity checks for a proposed change""" |
5 changes: 5 additions & 0 deletions
5
.../infrahub/message_bus/messages/proposed_change/request_proposedchange_refreshartifacts.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from .base_with_diff import BaseProposedChangeWithDiffMessage | ||
|
||
|
||
class RequestProposedChangeRefreshArtifacts(BaseProposedChangeWithDiffMessage): | ||
"""Sent trigger the refresh of artifacts that are impacted by the proposed change.""" |
5 changes: 5 additions & 0 deletions
5
.../infrahub/message_bus/messages/proposed_change/request_proposedchange_repositorychecks.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from .base_with_diff import BaseProposedChangeWithDiffMessage | ||
|
||
|
||
class RequestProposedChangeRepositoryChecks(BaseProposedChangeWithDiffMessage): | ||
"""Sent when a proposed change is created to trigger additional checks""" |
12 changes: 12 additions & 0 deletions
12
...end/infrahub/message_bus/messages/proposed_change/request_proposedchange_rungenerators.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from pydantic import Field | ||
|
||
from .base_with_diff import BaseProposedChangeWithDiffMessage | ||
|
||
|
||
class RequestProposedChangeRunGenerators(BaseProposedChangeWithDiffMessage): | ||
"""Sent trigger the generators that are impacted by the proposed change to run.""" | ||
|
||
refresh_artifacts: bool = Field(..., description="Whether to regenerate artifacts after the generators are run") | ||
do_repository_checks: bool = Field( | ||
..., description="Whether to run repository and user checks after the generators are run" | ||
) |
5 changes: 5 additions & 0 deletions
5
backend/infrahub/message_bus/messages/proposed_change/request_proposedchange_runtests.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from .base_with_diff import BaseProposedChangeWithDiffMessage | ||
|
||
|
||
class RequestProposedChangeRunTests(BaseProposedChangeWithDiffMessage): | ||
"""Sent trigger to run tests (smoke, units, integrations) for a proposed change.""" |
5 changes: 5 additions & 0 deletions
5
...d/infrahub/message_bus/messages/proposed_change/request_proposedchange_schemaintegrity.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from .base_with_diff import BaseProposedChangeWithDiffMessage | ||
|
||
|
||
class RequestProposedChangeSchemaIntegrity(BaseProposedChangeWithDiffMessage): | ||
"""Sent trigger schema integrity checks for a proposed change""" |
16 changes: 0 additions & 16 deletions
16
backend/infrahub/message_bus/messages/request_proposedchange_dataintegrity.py
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
backend/infrahub/message_bus/messages/request_proposedchange_repositorychecks.py
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
backend/infrahub/message_bus/messages/request_proposedchange_rungenerators.py
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
backend/infrahub/message_bus/messages/request_proposedchange_runtests.py
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
backend/infrahub/message_bus/messages/request_proposedchange_schemaintegrity.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import re | ||
|
||
|
||
def remove_ansi_color(text: str) -> str: | ||
ansi_escape = re.compile(r"\x1B(?:[@-Z\\-_]|\[[0-?]*[ -/]*[@-~])") | ||
return ansi_escape.sub("", text) |
Oops, something went wrong.