Skip to content
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
2 changes: 2 additions & 0 deletions .github/workflows/e2e-reusable-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1281,6 +1281,8 @@ jobs:

cp -a legacy/testdata /tmp/testdata

./scripts/precheck-prepare_ci.sh

set +e
FOCUS="${{ inputs.e2e_focus_tests }}"
if [ -n "$FOCUS" ]; then
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ tasks:

run:ci:
desc: "Separate task to run e2e tests in the CI environment"
env:
FOCUS: "VirtualMachineAdditionalNetworkInterfaces"
deps:
- copy
- kubectl
- d8
- precheck:prepare
cmds:
- ./scripts/task_run_ci.sh

Expand Down
28 changes: 28 additions & 0 deletions test/e2e/scripts/precheck-prepare_ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env bash

# Copyright 2026 Flant JSC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Generate JSON report via ginkgo dry-run for precheck preparation
# This script suppresses output while preserving error reporting

set -e

# Build ginkgo command
CMD="go tool ginkgo --json-report=/tmp/e2e-specs.json --dry-run --no-color"

# Run with suppressed stdout, but show stderr
$CMD 2>&1 > /dev/null

echo "Precheck prepare completed"
7 changes: 4 additions & 3 deletions test/e2e/scripts/task_run_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ echo "DATE=$DATE" >> $GITHUB_ENV
START_TIME=$(date +"%H:%M:%S")
echo "START_TIME=$START_TIME" >> $GITHUB_ENV

go tool ginkgo \
--focus="VirtualMachineAdditionalNetworkInterfaces" \
-v --race --timeout=$TIMEOUT | tee $GINKGO_RESULT
go tool ginkgo -v \
--race \
--focus=$FOCUS \
--timeout=$TIMEOUT | tee $GINKGO_RESULT
EXIT_CODE="${PIPESTATUS[0]}"
RESULT=$(sed -e "s/\x1b\[[0-9;]*m//g" $GINKGO_RESULT | grep --color=never -E "FAIL!|SUCCESS!")
if [[ $RESULT == FAIL!* || $EXIT_CODE -ne "0" ]]; then
Expand Down
Loading