66
77from ruamel .yaml import YAML
88
9- RELEASES_URL = "https://raw.githubusercontent.com/elastic/ logstash/main/ ci/logstash_releases.json "
9+ RELEASES_URL = "https://raw.githubusercontent.com/logstash-plugins/. ci/refs/heads/1.x/logstash-versions.yml "
1010TEST_MATRIX_URL = "https://raw.githubusercontent.com/elastic/logstash-filter-elastic_integration/main/.buildkite/pull" \
1111 "-request-test-matrix.yml"
1212TEST_COMMAND : typing .final = ".buildkite/scripts/run_tests.sh"
@@ -68,7 +68,8 @@ def make_matrix_version_key(branch: str) -> str:
6868
6969 steps = []
7070 response = call_url_with_retry (RELEASES_URL )
71- versions_json = response .json ()
71+ yaml = YAML (typ = 'safe' )
72+ versions_yaml : typing .final = yaml .load (response .text )
7273
7374 matrix_map = call_url_with_retry (TEST_MATRIX_URL )
7475 matrix_map_yaml = YAML ().load (matrix_map .text )
@@ -88,13 +89,13 @@ def make_matrix_version_key(branch: str) -> str:
8889 print (f"matrix_releases: { matrix_releases } " )
8990 print (f"matrix_snapshots: { matrix_snapshots } " )
9091 for matrix_release in matrix_releases :
91- full_stack_version : typing .final = versions_json ["releases" ].get (matrix_release )
92+ full_stack_version : typing .final = versions_yaml ["releases" ].get (matrix_release )
9293 # noop, if they are declared in the matrix but not in the release
9394 if full_stack_version is not None :
9495 steps += generate_unit_and_integration_test_steps (full_stack_version , "false" )
9596
9697 for matrix_snapshot in matrix_snapshots :
97- full_stack_version : typing .final = versions_json ["snapshots" ].get (matrix_snapshot )
98+ full_stack_version : typing .final = versions_yaml ["snapshots" ].get (matrix_snapshot )
9899 # noop, if they are declared in the matrix but not in the snapshot
99100 if full_stack_version is not None :
100101 steps += generate_unit_and_integration_test_steps (full_stack_version , "true" )
0 commit comments