-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Integrate UATs to full-bundle-tests.yaml (#739)
- tests-bundle: Update tests-bundle/1.8 * Remove dex-auth from the first assertion since this will be waiting for oidc-gatekeeper relation data * Remove argo-server since this is not part of the bundle anymore * Adjust timeout and idle_period since download now takes a lot less and big idle_period makes charms flaky since charms are active but go into maintenance status during this period. - tests-bundle: Unpin juju in tests-bundle/1.8. - ci: Refactor workflow to use Aproxy, Python 3.8 and operator action. - ci: Add UATs to workflow - ci: Add save debug artifacts to workflow * ci: Extract bundle test path from bundle source in `full_bundle_tests` WF Add `get_release_from_bundle_source` script and use in the workflow. This way, it doesn't require `bundle_test_path` as input.
- Loading branch information
Showing
4 changed files
with
167 additions
and
81 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
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,36 @@ | ||
# Get bundle test path for specific release | ||
import os | ||
import re | ||
import sys | ||
|
||
def get_release_from_bundle_source() -> None: | ||
if len(sys.argv) <= 1: | ||
raise Exception("No bundle source given as input.") | ||
|
||
bundle_source = sys.argv[1] | ||
# Bundle source input should be `--channel <channel_name>` or `--file <bundle_file>.yaml`` | ||
# e.g. --channel 1.8/stable or --file releases/1.8/stable/kubeflow/bundle.yaml | ||
bundle_source_starts_with_channel = re.search("^--channel", bundle_source) | ||
bundle_source_starts_with_file = re.search("^--file", bundle_source) | ||
|
||
try: | ||
if bundle_source_starts_with_channel: | ||
if re.search("^--channel=", bundle_source): | ||
substrings = bundle_source.split("=") | ||
else: | ||
substrings = bundle_source.split(" ") | ||
release=substrings[1] | ||
elif bundle_source_starts_with_file: | ||
substrings = bundle_source.split('/') | ||
track = substrings[1] | ||
risk = substrings[2] | ||
release = f"{track}/{risk}" | ||
print( | ||
f"Returning release={release}.") | ||
except: | ||
raise Exception("Bundle source doesn't have expected format.") | ||
|
||
with open(os.environ['GITHUB_OUTPUT'], 'a') as fh: | ||
print(f'release={release}', file=fh) | ||
|
||
get_release_from_bundle_source() |
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ lightkube | |
pytest | ||
pytest-operator | ||
kfp<2.0.0 | ||
juju<3.0.0 | ||
juju<4.0 | ||
selenium>=4.8.3 | ||
webdriver_manager>=3.8.5 |
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