Skip to content

Commit ae5f35d

Browse files
committed
ci: fix copyright and no-cyrillic issues (headers, docs, EN text)
Signed-off-by: Yachmenev Anton <anton.yachmenev@flant.com>
1 parent 72e1ebc commit ae5f35d

File tree

5 files changed

+36
-16
lines changed

5 files changed

+36
-16
lines changed

.github/workflows/e2e-matrix.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2025 Flant JSC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
name: E2E Matrix Tests (DVP-over-DVP)
216

317
on:

ci/dvp-e2e/Taskfile.vm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ tasks:
125125
KUBECONFIG="$OUT_FILE" kubectl get nodes -o wide || true
126126
127127
nested:sa:bootstrap-token:
128-
desc: "Создать временный SA-токен (10d) внутри nested через SSH на мастер (без локального admin.conf)"
128+
desc: "Create temporary SA token (10d) inside nested via SSH on master (no local admin.conf)"
129129
vars:
130130
PARENT_KUBECONFIG: '{{ .PARENT_KUBECONFIG | default "" }}'
131131
DEFAULT_USER: '{{ .DEFAULT_USER | default "ubuntu" }}'

ci/dvp-e2e/scripts/loop_junit_notify.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,18 @@ def parse_junit_xml(junit_file: Path) -> dict:
9898
def format_test_results(results: dict, run_id: str, storage_profile: str, timeout: str) -> str:
9999
"""Format test results into a readable message."""
100100
if results is None:
101-
return f"❌ Ошибка парсинга результатов тестов для {run_id}"
101+
return f"❌ Failed to parse test results for {run_id}"
102102

103103
# Determine status emoji and color
104104
if results['failed_tests'] == 0:
105105
status_emoji = "✅"
106-
status_text = "УСПЕШНО"
106+
status_text = "SUCCESS"
107107
elif results['success_rate'] >= 80:
108108
status_emoji = "⚠️"
109-
status_text = "ЧАСТИЧНО УСПЕШНО"
109+
status_text = "PARTIALLY SUCCESS"
110110
else:
111111
status_emoji = "❌"
112-
status_text = "НЕУДАЧНО"
112+
status_text = "FAILED"
113113

114114
# Format time
115115
time_str = f"{results['total_time']:.1f}s"
@@ -120,26 +120,26 @@ def format_test_results(results: dict, run_id: str, storage_profile: str, timeou
120120

121121
# Build message
122122
message_lines = [
123-
f"{status_emoji} E2E тесты virtualization завершены",
123+
f"{status_emoji} E2E tests for virtualization completed",
124124
f"📋 Run ID: {run_id}",
125125
f"💾 Storage: {storage_profile}",
126126
f"⏱️ Timeout: {timeout}",
127-
f"🕐 Время: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}",
127+
f"🕐 Time: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}",
128128
"",
129-
f"📊 Результаты: {status_text}",
130-
f"• Всего тестов: {results['total_tests']}",
131-
f"• Успешно: {results['successful_tests']}",
132-
f"• Неудачно: {results['failed_tests']}",
133-
f"• Пропущено: {results['skipped_tests']}",
134-
f"• Успешность: {results['success_rate']:.1f}%",
135-
f"• Время выполнения: {time_str}"
129+
f"📊 Results: {status_text}",
130+
f"• Total tests: {results['total_tests']}",
131+
f"• Passed: {results['successful_tests']}",
132+
f"• Failed: {results['failed_tests']}",
133+
f"• Skipped: {results['skipped_tests']}",
134+
f"• Success rate: {results['success_rate']:.1f}%",
135+
f"• Duration: {time_str}"
136136
]
137137

138138
# Add failed test details if any
139139
if results['failed_test_details']:
140140
message_lines.extend([
141141
"",
142-
"🔍 Неудачные тесты:"
142+
"🔍 Failed tests:"
143143
])
144144
for test in results['failed_test_details']:
145145
message_lines.append(f"• {test['class']}.{test['name']}")
@@ -149,7 +149,7 @@ def format_test_results(results: dict, run_id: str, storage_profile: str, timeou
149149
message_lines.append(f" {msg}")
150150

151151
if results['has_more_failures']:
152-
message_lines.append(f"• ... и еще {len(results['failed_test_details']) - 5} тестов")
152+
message_lines.append(f"• ... and {len(results['failed_test_details']) - 5} more tests")
153153

154154
return "\n".join(message_lines)
155155

docs/internal/ci-e2e.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# E2E Matrix in GitHub Actions (internal)
2+
3+
This internal note documents the E2E workflow and matrix setup used for CI.

docs/internal/ci-e2e.ru.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# E2E Matrix в GitHub Actions (внутренняя заметка)
2+
3+
Это внутренняя русскоязычная версия документа по E2E матрице и workflow.

0 commit comments

Comments
 (0)