Skip to content

Conversation

Alex-Welsh
Copy link
Member

Includes 2 commits

The first is a minor refactor of the periodic Multinode python script (which is not required for the old periodic mn fix)

The second adds a new argument to the workflow invocation, to change the version of terraform-kayobe-multinode. The input already exists.

@Alex-Welsh
Copy link
Member Author

@Alex-Welsh
Copy link
Member Author

Example outputs:

(dev) alex@alex-XPS-9315:~/work/stackhpc-kayobe-config$ python3 ./.github/workflows/multinode-inputs.py 
os_distribution=ubuntu
os_release=jammy
ssh_username=ubuntu
neutron_plugin=ovs
upgrade=major
stackhpc_kayobe_config_version=stackhpc/2024.1
stackhpc_kayobe_config_previous_version=stackhpc/2023.1
terraform_kayobe_multinode_version=main

(dev) alex@alex-XPS-9315:~/work/stackhpc-kayobe-config$ python3 ./.github/workflows/multinode-inputs.py 
os_distribution=ubuntu
os_release=noble
ssh_username=ubuntu
neutron_plugin=ovn
upgrade=none
stackhpc_kayobe_config_version=stackhpc/2025.1
stackhpc_kayobe_config_previous_version=stackhpc/2024.1
terraform_kayobe_multinode_version=main

(dev) alex@alex-XPS-9315:~/work/stackhpc-kayobe-config$ python3 ./.github/workflows/multinode-inputs.py 
os_distribution=ubuntu
os_release=jammy
ssh_username=ubuntu
neutron_plugin=ovn
upgrade=none
stackhpc_kayobe_config_version=stackhpc/2023.1
stackhpc_kayobe_config_previous_version=stackhpc/zed
terraform_kayobe_multinode_version=ea61ea1730e179e05e8f0e58b759267664c555e7

@Alex-Welsh
Copy link
Member Author

Test using TKM pin https://github.com/stackhpc/stackhpc-kayobe-config/actions/workflows/stackhpc-multinode.yml

Well, at least it didn't fail in the same way

Copy link
Member

@priteau priteau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your refactoring introduces many issues flagged by flake8:

.github/workflows/multinode-inputs.py:9:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:15:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:20:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:27:1: E305 expected 2 blank lines after class or function definition, found 1
.github/workflows/multinode-inputs.py:37:27: E231 missing whitespace after ','
.github/workflows/multinode-inputs.py:37:36: E231 missing whitespace after ','
.github/workflows/multinode-inputs.py:37:45: E231 missing whitespace after ','
.github/workflows/multinode-inputs.py:39:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:45:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:52:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:54:80: E501 line too long (116 > 79 characters)
.github/workflows/multinode-inputs.py:55:80: E501 line too long (92 > 79 characters)
.github/workflows/multinode-inputs.py:64:80: E501 line too long (81 > 79 characters)
.github/workflows/multinode-inputs.py:68:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:71:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:77:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:80:1: E305 expected 2 blank lines after class or function definition, found 1

@Alex-Welsh Alex-Welsh force-pushed the fix-old-mn-periodic branch from ba97d20 to e4bc9ea Compare August 6, 2025 10:46
@Alex-Welsh
Copy link
Member Author

Your refactoring introduces many issues flagged by flake8:

.github/workflows/multinode-inputs.py:9:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:15:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:20:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:27:1: E305 expected 2 blank lines after class or function definition, found 1
.github/workflows/multinode-inputs.py:37:27: E231 missing whitespace after ','
.github/workflows/multinode-inputs.py:37:36: E231 missing whitespace after ','
.github/workflows/multinode-inputs.py:37:45: E231 missing whitespace after ','
.github/workflows/multinode-inputs.py:39:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:45:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:52:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:54:80: E501 line too long (116 > 79 characters)
.github/workflows/multinode-inputs.py:55:80: E501 line too long (92 > 79 characters)
.github/workflows/multinode-inputs.py:64:80: E501 line too long (81 > 79 characters)
.github/workflows/multinode-inputs.py:68:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:71:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:77:1: E302 expected 2 blank lines, found 1
.github/workflows/multinode-inputs.py:80:1: E305 expected 2 blank lines after class or function definition, found 1

Thanks, fixed now.

Somewhat ironically, yesterday I was investigating linters for SKC, and thinking about adding one to our standard tox setup, which currently only does release notes. Didn't think to test it here though

Copy link
Member

@priteau priteau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your oldest commit references a variable only defined in the newest one.

@priteau priteau force-pushed the fix-old-mn-periodic branch from e4bc9ea to 108e874 Compare August 7, 2025 21:07
@priteau
Copy link
Member

priteau commented Aug 7, 2025

Your oldest commit references a variable only defined in the newest one.

Fixed in the version I pushed.

@Alex-Welsh Alex-Welsh merged commit f7e8c94 into stackhpc/2025.1 Aug 8, 2025
21 checks passed
@Alex-Welsh Alex-Welsh deleted the fix-old-mn-periodic branch August 8, 2025 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: s workflows Workflow files have been modified
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants