Skip to content

fix: Specify compute api dynamically - #591

Merged
cbartz merged 7 commits into
mainfrom
hotfix/specify-max-compute-api-ISD-3824
Jul 9, 2025
Merged

fix: Specify compute api dynamically#591
cbartz merged 7 commits into
mainfrom
hotfix/specify-max-compute-api-ISD-3824

Conversation

@cbartz

@cbartz cbartz commented Jul 7, 2025

Copy link
Copy Markdown
Collaborator

Applicable spec:

Overview

Specify compute api to be max 2.91

Rationale

  • there is a bug with 2.96
  • 2.92 requires public key in keypair calls

Juju Events Changes

n/a

Module Changes

openstack_cloud will check the max api version to use in a cached property, and use this version when creating the openstack connection

Library Changes

Checklist

@cbartz cbartz added the bug Something isn't working label Jul 8, 2025

@yanksyoon yanksyoon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you attach the proof of the locally passing CI please? LGTM

@cbartz

cbartz commented Jul 8, 2025

Copy link
Copy Markdown
Collaborator Author

Could you attach the proof of the locally passing CI please? LGTM

@yanksyoon Here it is

image

@cbartz
cbartz marked this pull request as ready for review July 9, 2025 07:53
@cbartz
cbartz requested a review from javierdelapuente as a code owner July 9, 2025 07:53
@cbartz
cbartz enabled auto-merge (squash) July 9, 2025 12:02
@github-actions

github-actions Bot commented Jul 9, 2025

Copy link
Copy Markdown
Contributor

Test results for commit 8a32f7c

Test coverage for 8a32f7c

Wrote XML report to coverage/coverage.xml

Static code analysis report

Run started:2025-07-09 13:51:38.913072

Test results:
  No issues identified.

Code scanned:
  Total lines of code: 2055
  Total lines skipped (#nosec): 2
  Total potential issues skipped due to specifically being disabled (e.g., #nosec BXXX): 1

Run metrics:
  Total issues (by severity):
  	Undefined: 0
  	Low: 0
  	Medium: 0
  	High: 0
  Total issues (by confidence):
  	Undefined: 0
  	Low: 0
  	Medium: 0
  	High: 0
Files skipped (0):

@github-actions

github-actions Bot commented Jul 9, 2025

Copy link
Copy Markdown
Contributor

TICS Quality Gate

✔️ Passed

github-runner-operator

All conditions passed

See the results in the TICS Viewer

The following files have been checked for this project
  • github-runner-manager/src/github_runner_manager/openstack_cloud/openstack_cloud.py
  • github-runner-manager/tests/unit/openstack_cloud/test_openstack_cloud.py
  • tests/integration/helpers/openstack.py
  • tests/integration/test_charm_runner.py

.github/workflows/tics.yaml / TICS / TICS GitHub Action

@cbartz
cbartz merged commit dc36d61 into main Jul 9, 2025
89 of 97 checks passed
@cbartz
cbartz deleted the hotfix/specify-max-compute-api-ISD-3824 branch July 9, 2025 19:05
@cbartz

cbartz commented Jul 10, 2025

Copy link
Copy Markdown
Collaborator Author

We decided to remove the integration test test_runner_manager , as those tests are covered in other integration test and it prevented merging due to its flakiness.

I've adapted the test_charm_runner integration test to cover one test (spawning two runners)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Libraries: Out of sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants