Skip to content

Commit ceabcd9

Browse files
authored
Merge pull request #20 from modeseven-lfreleng-actions/gerrit-metadata
Refactor!: Convert to Python, capture Gerrit environment parameters
2 parents 9354e39 + f741239 commit ceabcd9

56 files changed

Lines changed: 14732 additions & 799 deletions

Some content is hidden

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

.github/workflows/test-gerrit-metadata.yaml

Lines changed: 460 additions & 0 deletions
Large diffs are not rendered by default.

.github/workflows/testing.yaml

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
with:
4848
debug: true
4949
github_token: ${{ secrets.GITHUB_TOKEN }}
50-
generate_summary: true
50+
github_summary: true
5151

5252
- name: 'Validate outputs'
5353
shell: bash
@@ -208,7 +208,7 @@ jobs:
208208
with:
209209
debug: true
210210
change_detection: git
211-
generate_summary: false
211+
github_summary: false
212212

213213
- name: 'Validate Git fallback outputs'
214214
shell: bash
@@ -392,7 +392,7 @@ jobs:
392392
uses: ./
393393
with:
394394
github_token: ${{ secrets.GITHUB_TOKEN }}
395-
generate_summary: true
395+
github_summary: true
396396

397397
- name: 'Test cache with generated keys'
398398
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
@@ -443,28 +443,30 @@ jobs:
443443

444444
- name: 'Verify JSON-only artifact'
445445
shell: bash
446+
# yamllint disable rule:line-length
446447
run: |
447448
artifact_path="${{ steps.json-only.outputs.artifact_path }}"
448449
449-
if [ ! -f "$artifact_path/metadata.json" ]; then
450-
echo "❌ metadata.json not found"
450+
if [ ! -f "$artifact_path/repository-metadata.json" ]; then
451+
echo "❌ repository-metadata.json not found"
451452
exit 1
452453
fi
453454
454-
if [ ! -f "$artifact_path/metadata-pretty.json" ]; then
455-
echo "❌ metadata-pretty.json not found"
455+
if [ ! -f "$artifact_path/repository-metadata-pretty.json" ]; then
456+
echo "❌ repository-metadata-pretty.json not found"
456457
exit 1
457458
fi
458459
459-
if [ -f "$artifact_path/metadata.yaml" ]; then
460-
echo "❌ metadata.yaml should not exist for json-only format"
460+
if [ -f "$artifact_path/repository-metadata.yaml" ]; then
461+
echo "❌ repository-metadata.yaml should not exist for json-only format"
461462
exit 1
462463
fi
463464
464465
{
465466
echo '## JSON-Only Artifact Test'
466467
echo '✅ Only JSON files created'
467468
} >> "$GITHUB_STEP_SUMMARY"
469+
# yamllint enable rule:line-length
468470

469471
- name: 'Test YAML-only artifacts'
470472
id: yaml-only
@@ -474,28 +476,30 @@ jobs:
474476

475477
- name: 'Verify YAML-only artifact'
476478
shell: bash
479+
# yamllint disable rule:line-length
477480
run: |
478481
artifact_path="${{ steps.yaml-only.outputs.artifact_path }}"
479482
480-
if [ -f "$artifact_path/metadata.json" ]; then
481-
echo "❌ metadata.json should not exist for yaml-only format"
483+
if [ -f "$artifact_path/repository-metadata.json" ]; then
484+
echo "❌ repository-metadata.json should not exist for yaml-only format"
482485
exit 1
483486
fi
484487
485-
if [ -f "$artifact_path/metadata-pretty.json" ]; then
486-
echo "❌ metadata-pretty.json should not exist for yaml-only format"
488+
if [ -f "$artifact_path/repository-metadata-pretty.json" ]; then
489+
echo "❌ repository-metadata-pretty.json should not exist for yaml-only format"
487490
exit 1
488491
fi
489492
490-
if [ ! -f "$artifact_path/metadata.yaml" ]; then
491-
echo "❌ metadata.yaml not found"
493+
if [ ! -f "$artifact_path/repository-metadata.yaml" ]; then
494+
echo "❌ repository-metadata.yaml not found"
492495
exit 1
493496
fi
494497
495498
{
496499
echo '## YAML-Only Artifact Test'
497500
echo '✅ Only YAML file created'
498501
} >> "$GITHUB_STEP_SUMMARY"
502+
# yamllint enable rule:line-length
499503

500504
- name: 'Test both formats (default)'
501505
id: both-formats
@@ -505,25 +509,27 @@ jobs:
505509

506510
- name: 'Verify both formats artifact'
507511
shell: bash
512+
# yamllint disable rule:line-length
508513
run: |
509514
artifact_path="${{ steps.both-formats.outputs.artifact_path }}"
510515
511-
if [ ! -f "$artifact_path/metadata.json" ]; then
512-
echo "❌ metadata.json not found"
516+
if [ ! -f "$artifact_path/repository-metadata.json" ]; then
517+
echo "❌ repository-metadata.json not found"
513518
exit 1
514519
fi
515520
516-
if [ ! -f "$artifact_path/metadata-pretty.json" ]; then
517-
echo "❌ metadata-pretty.json not found"
521+
if [ ! -f "$artifact_path/repository-metadata-pretty.json" ]; then
522+
echo "❌ repository-metadata-pretty.json not found"
518523
exit 1
519524
fi
520525
521-
if [ ! -f "$artifact_path/metadata.yaml" ]; then
522-
echo "❌ metadata.yaml not found"
526+
if [ ! -f "$artifact_path/repository-metadata.yaml" ]; then
527+
echo "❌ repository-metadata.yaml not found"
523528
exit 1
524529
fi
525530
526531
{
527532
echo '## Both Formats Artifact Test'
528533
echo '✅ All files created (JSON + YAML)'
529534
} >> "$GITHUB_STEP_SUMMARY"
535+
# yamllint enable rule:line-length

0 commit comments

Comments
 (0)