@@ -308,19 +308,150 @@ jobs:
308
308
./ubiquitous_bash.sh _split_ingredientVM
309
309
timeout-minutes : 355
310
310
311
- - name : release! hash! ingredient
311
+ - name : _create_ingredientVM_report
312
+ shell : bash
313
+ run : |
314
+ ./ubiquitous_bash.sh _create_ingredientVM_report
315
+ timeout-minutes : 355
316
+
317
+ - name : release! ingredient! hash, reports
312
318
shell : bash
313
319
run : |
314
320
gh release upload build-${{ github.run_id }}-${{ github.run_attempt }} ./_local/vm-ingredient.img.hash.txt
321
+ gh release upload build-${{ github.run_id }}-${{ github.run_attempt }} ./_local/micro-dpkg.txt
322
+ gh release upload build-${{ github.run_id }}-${{ github.run_attempt }} ./_local/micro-binReport.txt
315
323
env :
316
324
GH_TOKEN : ${{ github.token }}
317
325
318
- - name : release! package_ingredientVM
326
+ - name : release! ingredient! package_ingredientVM
319
327
shell : bash
320
328
run : |
321
329
./ubiquitous_bash.sh _gh_release_upload_parts-multiple_sequence build-${{ github.run_id }}-${{ github.run_attempt }} ./_local/vm-ingredient.img.flx.part*
322
330
323
331
332
+
333
+
334
+ build-analysis-ingredient :
335
+ needs : [build_ingredient, build_release]
336
+ runs-on : ubuntu-latest
337
+ steps :
338
+ - name : report! API Rate Limit
339
+ shell : bash
340
+ run : |
341
+ curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ""${{ secrets.GITHUB_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/rate_limit
342
+ #curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/rate_limit | jq -r ".rate"
343
+
344
+ - name : _getCore_ub
345
+ shell : bash
346
+ run : |
347
+ mkdir -p ~/core/infrastructure
348
+ cd ~/core/infrastructure
349
+ git clone --depth 1 --recursive https://github.com/mirage335-colossus/ubiquitous_bash.git
350
+ cd ubiquitous_bash
351
+ ./_setupUbiquitous.bat
352
+ ./ubiquitous_bash.sh _custom_splice_opensslConfig
353
+
354
+ - uses : actions/checkout@v3
355
+ with :
356
+ fetch-depth : 1
357
+ submodules : ' recursive'
358
+ - name : mkdir _local
359
+ shell : bash
360
+ run : |
361
+ mkdir -p ./_local
362
+
363
+ - name : _getMinimal_cloud
364
+ shell : bash
365
+ run : |
366
+ ! ./ubiquitous_bash.sh _getMinimal_cloud && exit 1
367
+ true
368
+ #! sudo -n apt-get -y clean && exit 1
369
+ df -h
370
+ df -h /
371
+ timeout-minutes : 355
372
+
373
+ - name : _getMost-aria2
374
+ shell : bash
375
+ run : |
376
+ sudo -n apt-get -y clean
377
+ sudo -n apt-get update
378
+ sudo -n env DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install --install-recommends -y aria2
379
+ timeout-minutes : 355
380
+
381
+
382
+ - name : analysis! missing-binaries
383
+ shell : bash
384
+ run : |
385
+ #echo -n
386
+ _safeEcho() {
387
+ printf '%s' "$1"
388
+ shift
389
+
390
+ [[ "$@" == "" ]] && return 0
391
+
392
+ local currentArg
393
+ for currentArg in "$@"
394
+ do
395
+ printf '%s' " "
396
+ printf '%s' "$currentArg"
397
+ done
398
+ return 0
399
+ }
400
+
401
+ #echo
402
+ _safeEcho_newline() {
403
+ _safeEcho "$@"
404
+ printf '\n'
405
+ }
406
+
407
+ mkdir -p ./_local/analysis
408
+
409
+ #cp ./_local/micro-binReport.txt ./_local/analysis/micro-binReport.txt
410
+ #cp ./_local/micro-dpkg.txt ./_local/analysis/micro-dpkg.txt
411
+
412
+ cd ./_local/analysis
413
+
414
+ # Get the list of releases
415
+ RELEASES=$(curl -s -H "Authorization: token $GH_TOKEN" https://api.github.com/repos/soaringDistributions/ubDistBuild/releases?per_page=100&page=1)
416
+
417
+ # Download micro-binReport.txt file for the current release
418
+ curl -s -H "Authorization: token $GH_TOKEN" -L -o "micro-binReport-$currentReleaseTag" "https://github.com/soaringDistributions/ubDistBuild/releases/download/$currentReleaseTag/micro-binReport.txt"
419
+ curl -s -H "Authorization: token $GH_TOKEN" -L -o "micro-dpkg-$currentReleaseTag" "https://github.com/soaringDistributions/ubDistBuild/releases/download/$currentReleaseTag/micro-dpkg.txt"
420
+
421
+ # Loop through each release
422
+ #for RELEASE in $(_safeEcho_newline "$RELEASES" | jq -r '.[].tag_name' | sort --reverse); do
423
+ for RELEASE in $(_safeEcho_newline "$RELEASES" | jq -r 'sort_by(.published_at) | reverse | .[].tag_name' | tr -dc 'a-zA-Z0-9\-_.:\n'); do
424
+
425
+ # Compare the list of binaries in this release to the current release
426
+ if [ "$RELEASE" != "$currentReleaseTag" ]; then
427
+
428
+ # Download the binReport file for this release
429
+ curl -s -H "Authorization: token $GH_TOKEN" -L -o "micro-binReport-$RELEASE" "https://github.com/soaringDistributions/ubDistBuild/releases/download/$RELEASE/micro-binReport.txt"
430
+ curl -s -H "Authorization: token $GH_TOKEN" -L -o "micro-dpkg-$RELEASE" "https://github.com/soaringDistributions/ubDistBuild/releases/download/$RELEASE/micro-dpkg.txt"
431
+
432
+ echo | tee -a ./missing-micro-binReport.txt
433
+ echo "Binaries (filesystem) in $RELEASE but not in currentRelease $currentReleaseTag:" | tee -a ./missing-micro-binReport.txt
434
+ comm -23 <(sort "micro-binReport-$RELEASE") <(sort "micro-binReport-$currentReleaseTag") | tee -a ./missing-micro-binReport.txt
435
+ echo | tee -a ./missing-micro-dpkg.txt
436
+ echo "Binaries (dpkg) in $RELEASE but not in currentRelease $currentReleaseTag:" | tee -a ./missing-micro-dpkg.txt
437
+ comm -23 <(sort "micro-dpkg-$RELEASE") <(sort "micro-dpkg-$currentReleaseTag") | tee -a ./missing-micro-dpkg.txt
438
+ fi
439
+ done
440
+ env :
441
+ currentReleaseTag : build-${{ github.run_id }}-${{ github.run_attempt }}
442
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
443
+
444
+ - name : release! analysis! missing-binaries
445
+ shell : bash
446
+ run : |
447
+ gh release upload build-${{ github.run_id }}-${{ github.run_attempt }} ./_local/analysis/missing-micro-binReport.txt
448
+ gh release upload build-${{ github.run_id }}-${{ github.run_attempt }} ./_local/analysis/missing-micro-dpkg.txt
449
+ env :
450
+ GH_TOKEN : ${{ github.token }}
451
+
452
+
453
+
454
+
324
455
325
456
326
457
@@ -549,7 +680,7 @@ jobs:
549
680
- name : _get_ingredientVM
550
681
shell : bash
551
682
run : |
552
- ./_get_ingredientVM
683
+ ./ubiquitous_bash.sh _get_ingredientVM
553
684
554
685
- name : _create_ubDistBuild-create
555
686
shell : bash
0 commit comments