From fb0f124f9bd84f4dfcb4e7a33bf4be8c6eb35012 Mon Sep 17 00:00:00 2001 From: Aliaksandr Panasiuk Date: Thu, 6 Nov 2025 13:23:39 +0100 Subject: [PATCH 1/8] #V2 - test --- action.yml | 49 +++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/action.yml b/action.yml index 0a825c5..af83e54 100644 --- a/action.yml +++ b/action.yml @@ -211,32 +211,33 @@ runs: uses: actions/setup-python@v4 with: python-version: "3.10" + continue-on-error: true - name: Install python dependencies run: pip install -r ${{ github.action_path }}/requirements.txt shell: bash - - name: Execute main script - id: main - run: python ${{ github.action_path }}/main.py - shell: bash - env: - INPUT_ALLOWED_ENVIRONMENTS: ${{ inputs.allowed_environments }} - INPUT_CLUSTER_PROVIDER_CREDENTIALS: ${{ inputs.cluster_provider_credentials }} - INPUT_GITHUB_CUSTOM_REF: ${{ inputs.github_custom_ref }} - INPUT_GITHUB_CUSTOM_REF_NAME: ${{ inputs.github_custom_ref_name }} - INPUT_GITHUB_TOKEN_REPO_FULL_ACCESS: ${{ inputs.github_token_repo_full_access }} - INPUT_RMK_CLUSTER_PROVIDER: ${{ inputs.rmk_cluster_provider }} - INPUT_RMK_COMMAND: ${{ inputs.rmk_command }} - INPUT_RMK_DOWNLOAD_URL: ${{ inputs.rmk_download_url }} - INPUT_RMK_PROJECT_DEPENDENCY_NAME: ${{ inputs.rmk_project_dependency_name }} - INPUT_RMK_PROJECT_DEPENDENCY_VERSION: ${{ inputs.rmk_project_dependency_version }} - INPUT_RMK_RELEASE_REPOSITORY_FULL_NAME: ${{ inputs.rmk_release_repository_full_name }} - INPUT_RMK_RELEASE_VERSION: ${{ inputs.rmk_release_version }} - INPUT_RMK_SLACK_CHANNEL: ${{ inputs.rmk_slack_channel }} - INPUT_RMK_SLACK_MESSAGE_DETAILS: ${{ inputs.rmk_slack_message_details }} - INPUT_RMK_SLACK_NOTIFICATIONS: ${{ inputs.rmk_slack_notifications }} - INPUT_RMK_SLACK_WEBHOOK: ${{ inputs.rmk_slack_webhook }} - INPUT_RMK_SYNC_LABELS: ${{ inputs.rmk_sync_labels }} - INPUT_RMK_UPDATE_SKIP_DEPLOY: ${{ inputs.rmk_update_skip_deploy }} - INPUT_RMK_VERSION: ${{ inputs.rmk_version }} +# - name: Execute main script +# id: main +# run: python ${{ github.action_path }}/main.py +# shell: bash +# env: +# INPUT_ALLOWED_ENVIRONMENTS: ${{ inputs.allowed_environments }} +# INPUT_CLUSTER_PROVIDER_CREDENTIALS: ${{ inputs.cluster_provider_credentials }} +# INPUT_GITHUB_CUSTOM_REF: ${{ inputs.github_custom_ref }} +# INPUT_GITHUB_CUSTOM_REF_NAME: ${{ inputs.github_custom_ref_name }} +# INPUT_GITHUB_TOKEN_REPO_FULL_ACCESS: ${{ inputs.github_token_repo_full_access }} +# INPUT_RMK_CLUSTER_PROVIDER: ${{ inputs.rmk_cluster_provider }} +# INPUT_RMK_COMMAND: ${{ inputs.rmk_command }} +# INPUT_RMK_DOWNLOAD_URL: ${{ inputs.rmk_download_url }} +# INPUT_RMK_PROJECT_DEPENDENCY_NAME: ${{ inputs.rmk_project_dependency_name }} +# INPUT_RMK_PROJECT_DEPENDENCY_VERSION: ${{ inputs.rmk_project_dependency_version }} +# INPUT_RMK_RELEASE_REPOSITORY_FULL_NAME: ${{ inputs.rmk_release_repository_full_name }} +# INPUT_RMK_RELEASE_VERSION: ${{ inputs.rmk_release_version }} +# INPUT_RMK_SLACK_CHANNEL: ${{ inputs.rmk_slack_channel }} +# INPUT_RMK_SLACK_MESSAGE_DETAILS: ${{ inputs.rmk_slack_message_details }} +# INPUT_RMK_SLACK_NOTIFICATIONS: ${{ inputs.rmk_slack_notifications }} +# INPUT_RMK_SLACK_WEBHOOK: ${{ inputs.rmk_slack_webhook }} +# INPUT_RMK_SYNC_LABELS: ${{ inputs.rmk_sync_labels }} +# INPUT_RMK_UPDATE_SKIP_DEPLOY: ${{ inputs.rmk_update_skip_deploy }} +# INPUT_RMK_VERSION: ${{ inputs.rmk_version }} From eb79842d06807dff00e2846eba41f3ce012de138 Mon Sep 17 00:00:00 2001 From: Aliaksandr Panasiuk Date: Thu, 6 Nov 2025 15:01:36 +0100 Subject: [PATCH 2/8] #V2 - test --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index af83e54..efc7078 100644 --- a/action.yml +++ b/action.yml @@ -214,7 +214,10 @@ runs: continue-on-error: true - name: Install python dependencies - run: pip install -r ${{ github.action_path }}/requirements.txt + run: | + which pip + pip -V + pip install -r ${{ github.action_path }}/requirements.txt shell: bash # - name: Execute main script From 71fc78e40dd6263865811ec8dad00ee96d7c65d7 Mon Sep 17 00:00:00 2001 From: Aliaksandr Panasiuk Date: Thu, 6 Nov 2025 15:04:54 +0100 Subject: [PATCH 3/8] #V2 - test --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index efc7078..cfd7d58 100644 --- a/action.yml +++ b/action.yml @@ -215,6 +215,7 @@ runs: - name: Install python dependencies run: | + echo $PATH which pip pip -V pip install -r ${{ github.action_path }}/requirements.txt From 89b277d211cb0caf9234398b46046cdbcf64a235 Mon Sep 17 00:00:00 2001 From: Aliaksandr Panasiuk Date: Thu, 6 Nov 2025 16:09:46 +0100 Subject: [PATCH 4/8] #V2 - test --- action.yml | 51 ++++++++++++++++++++++++--------------------------- 1 file changed, 24 insertions(+), 27 deletions(-) diff --git a/action.yml b/action.yml index cfd7d58..2d02451 100644 --- a/action.yml +++ b/action.yml @@ -215,33 +215,30 @@ runs: - name: Install python dependencies run: | - echo $PATH - which pip - pip -V pip install -r ${{ github.action_path }}/requirements.txt shell: bash -# - name: Execute main script -# id: main -# run: python ${{ github.action_path }}/main.py -# shell: bash -# env: -# INPUT_ALLOWED_ENVIRONMENTS: ${{ inputs.allowed_environments }} -# INPUT_CLUSTER_PROVIDER_CREDENTIALS: ${{ inputs.cluster_provider_credentials }} -# INPUT_GITHUB_CUSTOM_REF: ${{ inputs.github_custom_ref }} -# INPUT_GITHUB_CUSTOM_REF_NAME: ${{ inputs.github_custom_ref_name }} -# INPUT_GITHUB_TOKEN_REPO_FULL_ACCESS: ${{ inputs.github_token_repo_full_access }} -# INPUT_RMK_CLUSTER_PROVIDER: ${{ inputs.rmk_cluster_provider }} -# INPUT_RMK_COMMAND: ${{ inputs.rmk_command }} -# INPUT_RMK_DOWNLOAD_URL: ${{ inputs.rmk_download_url }} -# INPUT_RMK_PROJECT_DEPENDENCY_NAME: ${{ inputs.rmk_project_dependency_name }} -# INPUT_RMK_PROJECT_DEPENDENCY_VERSION: ${{ inputs.rmk_project_dependency_version }} -# INPUT_RMK_RELEASE_REPOSITORY_FULL_NAME: ${{ inputs.rmk_release_repository_full_name }} -# INPUT_RMK_RELEASE_VERSION: ${{ inputs.rmk_release_version }} -# INPUT_RMK_SLACK_CHANNEL: ${{ inputs.rmk_slack_channel }} -# INPUT_RMK_SLACK_MESSAGE_DETAILS: ${{ inputs.rmk_slack_message_details }} -# INPUT_RMK_SLACK_NOTIFICATIONS: ${{ inputs.rmk_slack_notifications }} -# INPUT_RMK_SLACK_WEBHOOK: ${{ inputs.rmk_slack_webhook }} -# INPUT_RMK_SYNC_LABELS: ${{ inputs.rmk_sync_labels }} -# INPUT_RMK_UPDATE_SKIP_DEPLOY: ${{ inputs.rmk_update_skip_deploy }} -# INPUT_RMK_VERSION: ${{ inputs.rmk_version }} + - name: Execute main script + id: main + run: python ${{ github.action_path }}/main.py + shell: bash + env: + INPUT_ALLOWED_ENVIRONMENTS: ${{ inputs.allowed_environments }} + INPUT_CLUSTER_PROVIDER_CREDENTIALS: ${{ inputs.cluster_provider_credentials }} + INPUT_GITHUB_CUSTOM_REF: ${{ inputs.github_custom_ref }} + INPUT_GITHUB_CUSTOM_REF_NAME: ${{ inputs.github_custom_ref_name }} + INPUT_GITHUB_TOKEN_REPO_FULL_ACCESS: ${{ inputs.github_token_repo_full_access }} + INPUT_RMK_CLUSTER_PROVIDER: ${{ inputs.rmk_cluster_provider }} + INPUT_RMK_COMMAND: ${{ inputs.rmk_command }} + INPUT_RMK_DOWNLOAD_URL: ${{ inputs.rmk_download_url }} + INPUT_RMK_PROJECT_DEPENDENCY_NAME: ${{ inputs.rmk_project_dependency_name }} + INPUT_RMK_PROJECT_DEPENDENCY_VERSION: ${{ inputs.rmk_project_dependency_version }} + INPUT_RMK_RELEASE_REPOSITORY_FULL_NAME: ${{ inputs.rmk_release_repository_full_name }} + INPUT_RMK_RELEASE_VERSION: ${{ inputs.rmk_release_version }} + INPUT_RMK_SLACK_CHANNEL: ${{ inputs.rmk_slack_channel }} + INPUT_RMK_SLACK_MESSAGE_DETAILS: ${{ inputs.rmk_slack_message_details }} + INPUT_RMK_SLACK_NOTIFICATIONS: ${{ inputs.rmk_slack_notifications }} + INPUT_RMK_SLACK_WEBHOOK: ${{ inputs.rmk_slack_webhook }} + INPUT_RMK_SYNC_LABELS: ${{ inputs.rmk_sync_labels }} + INPUT_RMK_UPDATE_SKIP_DEPLOY: ${{ inputs.rmk_update_skip_deploy }} + INPUT_RMK_VERSION: ${{ inputs.rmk_version }} From 85f0fcbf36ce0649d4857058759a6c33f3524a55 Mon Sep 17 00:00:00 2001 From: Aliaksandr Panasiuk Date: Thu, 6 Nov 2025 16:51:51 +0100 Subject: [PATCH 5/8] #V2 - add onprem cluster provider --- action.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 2d02451..3ed0b83 100644 --- a/action.yml +++ b/action.yml @@ -41,6 +41,11 @@ inputs: "universe_domain": "googleapis.com" }, "GCP_REGION": "us-east1" + }, + "onprem": { + "ONPREM_SSH_INIT_SERVER_HOST": "", + "ONPREM_SSH_PRIVATE_KEY": "", + "ONPREM_SSH_USER": "" } } }, @@ -73,6 +78,11 @@ inputs: "universe_domain": "googleapis.com" }, "GCP_REGION": "us-east1" + }, + "onprem": { + "ONPREM_SSH_INIT_SERVER_HOST": "", + "ONPREM_SSH_PRIVATE_KEY": "", + "ONPREM_SSH_USER": "" } } }, @@ -105,6 +115,11 @@ inputs: "universe_domain": "googleapis.com" }, "GCP_REGION": "us-east1" + }, + "onprem": { + "ONPREM_SSH_INIT_SERVER_HOST": "", + "ONPREM_SSH_PRIVATE_KEY": "", + "ONPREM_SSH_USER": "" } } } @@ -122,7 +137,7 @@ inputs: description: GitHub token with full access permissions to repositories (used by installer script and RMK). required: true rmk_cluster_provider: - description: Cluster provider. Allowed values are "aws", "azure", "gcp". + description: Cluster provider. Allowed values are "aws", "azure", "gcp", "onprem". required: true default: aws rmk_command: From 97348ace1633c5d97ebcaf491750e95243d087d3 Mon Sep 17 00:00:00 2001 From: Aliaksandr Panasiuk Date: Thu, 6 Nov 2025 16:52:34 +0100 Subject: [PATCH 6/8] #V2 - add onprem cluster provider --- action.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 3ed0b83..f97be41 100644 --- a/action.yml +++ b/action.yml @@ -229,8 +229,7 @@ runs: continue-on-error: true - name: Install python dependencies - run: | - pip install -r ${{ github.action_path }}/requirements.txt + run: pip install -r ${{ github.action_path }}/requirements.txt shell: bash - name: Execute main script From 0636d97ea38426adc67ed26e957ef83c0d5e23c1 Mon Sep 17 00:00:00 2001 From: Aliaksandr Panasiuk Date: Thu, 6 Nov 2025 17:46:47 +0100 Subject: [PATCH 7/8] #V2 - refactoring --- action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/action.yml b/action.yml index f97be41..2d766e3 100644 --- a/action.yml +++ b/action.yml @@ -222,6 +222,12 @@ outputs: runs: using: composite steps: + # We use `continue-on-error: true` because this workflow runs both on + # GitHub-hosted and self-hosted runners. + # On GitHub runners, Python 3.10 may need to be installed via setup-python. + # On on-prem self-hosted runners, Python is already provisioned (via Ansible), + # and setup-python may fail due to lack of internet access. + # Failing here should NOT stop the workflow — so we allow the step to continue. - name: Install python uses: actions/setup-python@v4 with: From 00e0fe87d2fc9dc9f0d4ee4d271c7266ec629673 Mon Sep 17 00:00:00 2001 From: Aliaksandr Panasiuk Date: Fri, 7 Nov 2025 08:43:07 +0100 Subject: [PATCH 8/8] #V2 - refactoring --- action.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 2d766e3..32c90d0 100644 --- a/action.yml +++ b/action.yml @@ -222,12 +222,9 @@ outputs: runs: using: composite steps: - # We use `continue-on-error: true` because this workflow runs both on - # GitHub-hosted and self-hosted runners. - # On GitHub runners, Python 3.10 may need to be installed via setup-python. - # On on-prem self-hosted runners, Python is already provisioned (via Ansible), - # and setup-python may fail due to lack of internet access. - # Failing here should NOT stop the workflow — so we allow the step to continue. + # setup-python action does not support provisioning Python on RHEL 9 self-hosted runners. + # Python is pre-installed on onprem hosts via configuration management. + # Therefore, this step may legitimately fail and should not block the workflow. - name: Install python uses: actions/setup-python@v4 with: