Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release-1.99.104 #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .github/workflows/behave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ on:
If setting to a pull request, caller is responsible
for verifying the user is a trusted user.
secrets:
# NOTE(komish): Not technically secret, but must be listed as a secret
# bot-name is not technically secret, but must be listed as a secret
# because you can't pass the ${{ secrets }} context as an input in the
# calling workflow, and our repos have this configured as a secret.
bot-name:
Expand All @@ -80,14 +80,23 @@ jobs:
repository: ${{ inputs.checkout-repository }}
fetch-depth: ${{ inputs.checkout-fetch-depth }}
- name: find features
# Find the feature files currently defined in repo. We expect to find at
# least 15 files, though that number is arbitrarily chosen at a figure
# below the actual count at the time of this writing (19).
#
# The expectation is that all behave tests are expected to exist at this
# path.
id: find-features
# TODO(JOSE) Sanity check - make sure this is more than one feature in length.
run: |
set -e
cd tests/functional/behave_features
# echo features=$(find . -name '*.feature' | sed -e 's%\./%%g' | jq -R -s -c 'split("\n") | del(.[] | select(length == 0))') | tee -a $GITHUB_OUTPUT
# NOTE(JOSE): temporarily restrict this to a small number of tests for debugging other things.
# To Revert: remove the next line, and uncomment the line previous this comment.
echo features=$(find . -name '*.feature' | sed -e 's%\./%%g' | jq -R -s -c 'split("\n") | del(.[] | select(length == 0))[:2]') | tee -a $GITHUB_OUTPUT
features=$(find . -name '*.feature' | sed -e 's%\./%%g' | jq -R -s -c 'split("\n") | del(.[] | select(length == 0))')
echo "Found feature files: ${features}"
echo "Running sanity checks."
echo "${features}" | jq --exit-status 'type == "array"'
echo "${features}" | jq --exit-status 'length > 15'
echo "Sanity checks done."
echo "features=${features}" | tee -a $GITHUB_OUTPUT
run-tests:
runs-on: ubuntu-latest
needs: [get-features]
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ jobs:
needs.determine-workflow-conditions.outputs.run-tests == 'true'
uses: ./.github/workflows/behave.yml
with:
tags: ${{ needs.determine-workflow-conditions.outputs.test-tags }}
# Default tags to 'full' if test-tags is unset for any reason by the time
# we get here.
tags: ${{ needs.determine-workflow-conditions.outputs.test-tags || 'full' }}
behave-logging-level: WARNING
pr-body: "Test triggered by release PR ${{ github.event.pull_request.html_url }}."
# checkout parameters passed to ensure we're testing the release content
Expand Down
30 changes: 0 additions & 30 deletions scripts/src/release/releaser.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,33 +37,6 @@
STAGE_PR_BRANCH_BODY_PREFIX = "Workflow and script updates from development repository"
STAGE_PR_BRANCH_NAME_PREFIX = "Release-"

# SCHEDULE_INSERT = [
# " # Daily trigger to check updates",
# " schedule:",
# ' - cron: "0 0 * * *"',
# ]

# (JOSE) Marked for removal. This function (and call locations) modify
# version_check.yml which will be removed.
# def update_workflow():
# lines = []
# with open(VERSION_CHECK_YAML_FILE, "r") as schedule_file:
# lines = schedule_file.readlines()

# for line in lines:
# if line.strip() == "on:":
# insert_location = lines.index(line) + 1
# if SCHEDULE_INSERT[0] not in lines[insert_location].rstrip():
# print("[INFO] add cron job to schedule.yaml")
# lines.insert(insert_location, f"{SCHEDULE_INSERT[0]}\n")
# lines.insert(insert_location + 1, f"{SCHEDULE_INSERT[1]}\n")
# lines.insert(insert_location + 2, f"{SCHEDULE_INSERT[2]}\n")
# break

# with open(VERSION_CHECK_YAML_FILE, "w") as schedule_file:
# schedule_file.write("".join(lines))


def make_required_changes(release_info_dir, origin, destination):
print(f"Make required changes from {origin} to {destination}")

Expand Down Expand Up @@ -207,9 +180,6 @@ def main():

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

organization = args.target_repository.split("/")[0]
charts_repository = f"{organization}{gitutils.CHARTS_REPO}"
Expand Down
Loading