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

[ACM-17545] Added hermetic flag to konflux configs #567

Merged
merged 2 commits into from
Jan 31, 2025
Merged
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
8 changes: 4 additions & 4 deletions .tekton/discovery-operator-main-unit-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,21 @@ spec:
REPO_URL=$(echo $SNAPSHOT | jq -r --arg name "$TARGET_COMPONENT_NAME" '.components[] | select(.name == $name) | .source.git.url')
REPO_COMMIT=$(echo $SNAPSHOT | jq -r --arg name "$TARGET_COMPONENT_NAME" '.components[] | select(.name == $name) | .source.git.revision')
test_output_file=${PWD}/test_output.json

# Log Vars for Tracibility
echo "REPO_URL: $REPO_URL"
echo "TARGET_COMPONENT_NAME: $TARGET_COMPONENT_NAME"
echo "REPO_COMMIT: $REPO_COMMIT"
echo "SNAPSHOT: $(echo $SNAPSHOT | jq)"

# Clone Repo and checkout at snapshot commit
git clone $REPO_URL $TARGET_COMPONENT_NAME
cd $TARGET_COMPONENT_NAME
git checkout $REPO_COMMIT

# Run unit tests with JSON output
make test unit_test_json_output="$test_output_file"

# Read, process, and write output in accepted format
# Formatting docs: https://redhat-appstudio.github.io/book/ADR/0030-tekton-results-naming-convention.html#test_output-schema-validation
FAILURES=$(cat $test_output_file | jq 'select(.Action == "fail")' | jq -r --slurp 'length')
Expand Down
Loading