Skip to content

Commit c007db6

Browse files
committed
DEV address comments
1 parent ecffe1b commit c007db6

File tree

2 files changed

+15
-36
lines changed

2 files changed

+15
-36
lines changed

.github/workflows/behave.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ on:
5555
If setting to a pull request, caller is responsible
5656
for verifying the user is a trusted user.
5757
secrets:
58-
# NOTE(komish): Not technically secret, but must be listed as a secret
58+
# bot-name is not technically secret, but must be listed as a secret
5959
# because you can't pass the ${{ secrets }} context as an input in the
6060
# calling workflow, and our repos have this configured as a secret.
6161
bot-name:
@@ -80,14 +80,23 @@ jobs:
8080
repository: ${{ inputs.checkout-repository }}
8181
fetch-depth: ${{ inputs.checkout-fetch-depth }}
8282
- name: find features
83+
# Find the feature files currently defined in repo. We expect to find at
84+
# least 15 files, though that number is arbitrarily chosen at a figure
85+
# below the actual count at the time of this writing (19).
86+
#
87+
# The expectation is that all behave tests are expected to exist at this
88+
# path.
8389
id: find-features
84-
# TODO(JOSE) Sanity check - make sure this is more than one feature in length.
8590
run: |
91+
set -e
8692
cd tests/functional/behave_features
87-
# echo features=$(find . -name '*.feature' | sed -e 's%\./%%g' | jq -R -s -c 'split("\n") | del(.[] | select(length == 0))') | tee -a $GITHUB_OUTPUT
88-
# NOTE(JOSE): temporarily restrict this to a small number of tests for debugging other things.
89-
# To Revert: remove the next line, and uncomment the line previous this comment.
90-
echo features=$(find . -name '*.feature' | sed -e 's%\./%%g' | jq -R -s -c 'split("\n") | del(.[] | select(length == 0))[:2]') | tee -a $GITHUB_OUTPUT
93+
features=$(find . -name '*.feature' | sed -e 's%\./%%g' | jq -R -s -c 'split("\n") | del(.[] | select(length == 0))')
94+
echo "Found feature files: ${features}"
95+
echo "Running sanity checks."
96+
echo "${features}" | jq --exit-status 'type == "array"'
97+
echo "${features}" | jq --exit-status 'length > 15'
98+
echo "Sanity checks done."
99+
echo "features=${features}" | tee -a $GITHUB_OUTPUT
91100
run-tests:
92101
runs-on: ubuntu-latest
93102
needs: [get-features]

scripts/src/release/releaser.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -37,33 +37,6 @@
3737
STAGE_PR_BRANCH_BODY_PREFIX = "Workflow and script updates from development repository"
3838
STAGE_PR_BRANCH_NAME_PREFIX = "Release-"
3939

40-
# SCHEDULE_INSERT = [
41-
# " # Daily trigger to check updates",
42-
# " schedule:",
43-
# ' - cron: "0 0 * * *"',
44-
# ]
45-
46-
# (JOSE) Marked for removal. This function (and call locations) modify
47-
# version_check.yml which will be removed.
48-
# def update_workflow():
49-
# lines = []
50-
# with open(VERSION_CHECK_YAML_FILE, "r") as schedule_file:
51-
# lines = schedule_file.readlines()
52-
53-
# for line in lines:
54-
# if line.strip() == "on:":
55-
# insert_location = lines.index(line) + 1
56-
# if SCHEDULE_INSERT[0] not in lines[insert_location].rstrip():
57-
# print("[INFO] add cron job to schedule.yaml")
58-
# lines.insert(insert_location, f"{SCHEDULE_INSERT[0]}\n")
59-
# lines.insert(insert_location + 1, f"{SCHEDULE_INSERT[1]}\n")
60-
# lines.insert(insert_location + 2, f"{SCHEDULE_INSERT[2]}\n")
61-
# break
62-
63-
# with open(VERSION_CHECK_YAML_FILE, "w") as schedule_file:
64-
# schedule_file.write("".join(lines))
65-
66-
6740
def make_required_changes(release_info_dir, origin, destination):
6841
print(f"Make required changes from {origin} to {destination}")
6942

@@ -207,9 +180,6 @@ def main():
207180

208181
print("edit files in charts")
209182
os.chdir(args.charts_dir)
210-
# (JOSE) Marked for removal. This function (and call locations) modify
211-
# version_check.yml which will be removed.
212-
# update_workflow()
213183

214184
organization = args.target_repository.split("/")[0]
215185
charts_repository = f"{organization}{gitutils.CHARTS_REPO}"

0 commit comments

Comments
 (0)