Skip to content

Commit 40b47ad

Browse files
authored
Release by 30.09.2025 (#2265)
2 parents ef7c681 + 6d347db commit 40b47ad

566 files changed

Lines changed: 11269 additions & 3232 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/cypress-by-cron-every-day.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,5 @@ jobs:
3232
scope: ${{ matrix.scope }}
3333
prefix: "sdds"
3434
with-react-17: true
35-
with-artifacts: true
3635
secrets: inherit
3736

.github/workflows/cypress-common.yml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,28 +49,50 @@ jobs:
4949
uses: nick-fields/retry@v3
5050
with:
5151
timeout_minutes: 45
52-
max_attempts: 3
52+
max_attempts: 2
5353
retry_on: error
5454
command: |
5555
if [ "${{ inputs.prefix }}" = "plasma" ]; then
5656
npx lerna bootstrap --scope=@salutejs/${{ inputs.prefix }}-${{env.SCOPE}} --scope="@salutejs/platform-test" --scope="@salutejs/core-themes"
5757
else
5858
npx lerna bootstrap --scope=@salutejs/plasma-${{env.SCOPE}} --scope="@salutejs/platform-test" --scope="@salutejs/core-themes" --scope="@salutejs/${{ inputs.prefix }}-{${{ inputs.scope }},themes}"
5959
fi
60-
60+
6161
- name: Run Cypress CT for Plasma ${{ inputs.scope }}
6262
if: ${{ success() }}
6363
uses: nick-fields/retry@v3
6464
with:
6565
timeout_minutes: 120
66-
max_attempts: 3
66+
max_attempts: 2
6767
retry_on: error
6868
command: npm run cy:${{ inputs.scope }}:run-ct
6969

70+
- name: Reorganize diff artifacts
71+
if: ${{ failure() || inputs.with-artifacts }}
72+
run: |
73+
mkdir -p /tmp/artifacts
74+
find /home/runner/work/plasma/plasma/cypress/snapshots -name "__diff_output__" -type d | while read dir; do
75+
# Извлекаем package name из пути
76+
package=$(echo "$dir" | sed 's|.*/snapshots/\([^/]*\)/.*|\1|')
77+
78+
# Проверяем, содержит ли путь /components/ и извлекаем component name
79+
if [[ "$dir" == *"/components/"* ]]; then
80+
component=$(echo "$dir" | sed 's|.*/components/\([^/]*\)/.*|\1|')
81+
else
82+
# Если нет /components/, берем последнюю значимую часть пути перед __diff_output__
83+
component=$(echo "$dir" | sed 's|/__diff_output__$||' | sed 's|.*/||')
84+
fi
85+
86+
target_dir="/tmp/artifacts/${package}/${component}"
87+
mkdir -p "$target_dir"
88+
89+
cp "$dir"/* "$target_dir"/ 2>/dev/null || true
90+
done
91+
7092
- name: Save artifacts
7193
if: ${{ failure() || inputs.with-artifacts }}
7294
uses: actions/upload-artifact@v4
7395
with:
74-
name: Test_Artifacts_${{ inputs.scope }}_
75-
path: /home/runner/work/plasma/plasma/cypress
96+
name: Failures_Tests_Artifact_${{ inputs.scope }}_
97+
path: /tmp/artifacts/
7698
overwrite: true
-1.11 KB
-4.19 KB
1.58 KB
1.87 KB

0 commit comments

Comments
 (0)