@@ -758,8 +758,10 @@ jobs:
758758 #export MANDATORY_HASH="true"
759759 cd ./_local
760760 rm -f hash-download.txt
761- ../ubiquitous_bash.sh _wget_githubRelease_join-stdout "${{ github.repository }}" "" "package_image_before_noBoot.tar.flx" 2> /dev/null | tee >(../ubiquitous_bash.sh _get_extract_ubDistBuild-tar --extract ./vm.img --to-stdout | env OPENSSL_CONF="/etc/ssl/openssl_legacy.cnf" openssl dgst -whirlpool -binary | xxd -p -c 256 > hash-download.txt) | ../ubiquitous_bash.sh _get_extract_ubDistBuild
761+ #../ubiquitous_bash.sh _wget_githubRelease_join-stdout "${{ github.repository }}" "" "package_image_before_noBoot.tar.flx" 2> /dev/null | tee >(../ubiquitous_bash.sh _get_extract_ubDistBuild-tar --extract ./vm.img --to-stdout | env OPENSSL_CONF="/etc/ssl/openssl_legacy.cnf" openssl dgst -whirlpool -binary | xxd -p -c 256 > hash-download.txt) | ../ubiquitous_bash.sh _get_extract_ubDistBuild
762+ ../ubiquitous_bash.sh _wget_githubRelease-fromTag_join-stdout "${{ github.repository }}" "$currentReleaseTag" "package_image_before_noBoot.tar.flx" | tee >(../ubiquitous_bash.sh _get_extract_ubDistBuild-tar --extract ./vm.img --to-stdout | env OPENSSL_CONF="/etc/ssl/openssl_legacy.cnf" openssl dgst -whirlpool -binary | xxd -p -c 256 > hash-download.txt) | ../ubiquitous_bash.sh _get_extract_ubDistBuild
762763 env :
764+ currentReleaseTag : ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999
763765 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
764766
765767
@@ -1506,7 +1508,7 @@ jobs:
15061508 git clone https://github.com/mirage335-colossus/extendedInterface.git
15071509 cd extendedInterface
15081510 mkdir -p ../extendedInterface-accessories/integrations/ubcp
1509- curl -L -o ../extendedInterface-accessories/integrations/ubcp/package_ubcp-core.7z $(curl -s -H "Authorization: Bearer ${{ secrets.TOKEN_publicEquiv_auto }}" "https://api.github.com/repos/mirage335-colossus/ubiquitous_bash/releases" | jq -r ".[] | select(.name == \"internal\") | .assets[] | select(.name == \"package_ubcp-core.7z\") | .browser_download_url" | sort -n -r | head -n1)
1511+ # curl -L -o ../extendedInterface-accessories/integrations/ubcp/package_ubcp-core.7z $(curl -s -H "Authorization: Bearer ${{ secrets.TOKEN_publicEquiv_auto }}" "https://api.github.com/repos/mirage335-colossus/ubiquitous_bash/releases" | jq -r ".[] | select(.name == \"internal\") | .assets[] | select(.name == \"package_ubcp-core.7z\") | .browser_download_url" | sort -n -r | head -n1)
15101512 ./ubiquitous_bash.sh _build_extendedInterface-fetch | sudo -n tee ../../_lib/_extendedInterface.log && exit ${PIPESTATUS[0]}
15111513 env :
15121514 GH_TOKEN : ${{ secrets.TOKEN_publicEquiv_auto }}
@@ -1517,7 +1519,7 @@ jobs:
15171519 git clone https://github.com/soaringDistributions/ubDistBuild.git
15181520 cd ubDistBuild
15191521 mkdir -p ../ubDistBuild-accessories/integrations/ubcp
1520- curl -L -o ../ubDistBuild-accessories/integrations/ubcp/package_ubcp-core.7z $(curl -s -H "Authorization: Bearer ${{ secrets.TOKEN_publicEquiv_auto }}" "https://api.github.com/repos/mirage335-colossus/ubiquitous_bash/releases" | jq -r ".[] | select(.name == \"internal\") | .assets[] | select(.name == \"package_ubcp-core.7z\") | .browser_download_url" | sort -n -r | head -n1)
1522+ # curl -L -o ../ubDistBuild-accessories/integrations/ubcp/package_ubcp-core.7z $(curl -s -H "Authorization: Bearer ${{ secrets.TOKEN_publicEquiv_auto }}" "https://api.github.com/repos/mirage335-colossus/ubiquitous_bash/releases" | jq -r ".[] | select(.name == \"internal\") | .assets[] | select(.name == \"package_ubcp-core.7z\") | .browser_download_url" | sort -n -r | head -n1)
15211523 ./ubiquitous_bash.sh _build_ubDistBuild-fetch | sudo -n tee ../../_lib/_ubDistBuild.log && exit ${PIPESTATUS[0]}
15221524 env :
15231525 GH_TOKEN : ${{ secrets.TOKEN_publicEquiv_auto }}
@@ -1774,8 +1776,9 @@ jobs:
17741776 echo $skimfast
17751777 #export FORCE_AXEL=8
17761778 #export MANDATORY_HASH="true"
1777- ./ubiquitous_bash.sh _hash_ubdist-fast
1779+ ./ubiquitous_bash.sh _hash_ubdist-fast "$currentReleaseTag"
17781780 env :
1781+ currentReleaseTag : ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999
17791782 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
17801783
17811784
@@ -1832,10 +1835,6 @@ jobs:
18321835 with :
18331836 fetch-depth : 1
18341837 # submodules: 'recursive'
1835- - name : mkdir _local
1836- shell : bash
1837- run : |
1838- mkdir -p ./_local
18391838
18401839 # - name: _getMinimal_cloud
18411840 # shell: bash
@@ -1850,148 +1849,123 @@ jobs:
18501849 - name : _getMinimal_cloud-analysis
18511850 shell : bash
18521851 run : |
1852+ mkdir -p ./_local
18531853 sudo -n apt-get -y install jq gh curl coreutils
1854-
1855- # - name: _getMost-aria2
1856- # shell: bash
1857- # run: |
1858- # sudo -n apt-get -y clean
1859- # sudo -n apt-get update
1860- # sudo -n env DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install --install-recommends -y aria2
1861- # timeout-minutes: 355
18621854
1863- - name : report! cronUserReport
1855+ - name : _getMinimal_cloud-special
18641856 shell : bash
1857+ timeout-minutes : 120
18651858 run : |
1866- mkdir -p ./_local/analysis
1867-
1868- cd ./_local/analysis
1869-
1870- # Get the list of releases
1871- RELEASES=$(curl -s -H "Authorization: token $GH_TOKEN" https://api.github.com/repos/"${{ github.repository }}"/releases)
1859+ mkdir -p ./_local
1860+ #sudo -n apt-get -y install jq gh curl coreutils p7zip findutils tar gzip bzip2 sed axel aria2 rsync pv dos2unix xxd util-linux openssl
1861+ sudo -n apt-get -y install jq gh curl coreutils findutils tar gzip bzip2 sed axel aria2 rsync pv dos2unix xxd util-linux
18721862
1873- # Download binReport file for the current release
1874- curl -s -H "Authorization: token $GH_TOKEN" -L -o "cronUserReport-$currentReleaseTag" "https://github.com/"${{ github.repository }}"/releases/download/$currentReleaseTag/cronUserReport"
1863+ - name : report! cronUserReport
1864+ shell : bash
1865+ run : |
1866+ #mkdir -p ./_local/analysis
1867+ #cd ./_local/analysis
1868+ ## Download binReport file for the current release
1869+ #curl -s -H "Authorization: token $GH_TOKEN" -L -o "cronUserReport-$currentReleaseTag" "https://github.com/"${{ github.repository }}"/releases/download/$currentReleaseTag/cronUserReport"
1870+ #echo
1871+ #cat ./cronUserReport-$currentReleaseTag
18751872
18761873 echo
1877- cat ./cronUserReport-$ currentReleaseTag
1874+ _wget_githubRelease-fromTag-fetchReport "$currentRepository" "$ currentReleaseTag" "cronUserReport"
18781875 env :
1876+ currentRepository : ${{ github.repository }}
18791877 currentReleaseTag : ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999
18801878 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
18811879
18821880 - name : report! cronRootReport
18831881 shell : bash
18841882 run : |
1885- mkdir -p ./_local/analysis
1886-
1887- cd ./_local/analysis
1888-
1889- # Get the list of releases
1890- RELEASES=$(curl -s -H "Authorization: token $GH_TOKEN" https://api.github.com/repos/"${{ github.repository }}"/releases)
1891-
1892- # Download binReport file for the current release
1893- curl -s -H "Authorization: token $GH_TOKEN" -L -o "cronRootReport-$currentReleaseTag" "https://github.com/"${{ github.repository }}"/releases/download/$currentReleaseTag/cronRootReport"
1883+ #mkdir -p ./_local/analysis
1884+ #cd ./_local/analysis
1885+ ## Download binReport file for the current release
1886+ #curl -s -H "Authorization: token $GH_TOKEN" -L -o "cronRootReport-$currentReleaseTag" "https://github.com/"${{ github.repository }}"/releases/download/$currentReleaseTag/cronRootReport"
1887+ #echo
1888+ #cat ./cronRootReport-$currentReleaseTag
18941889
18951890 echo
1896- cat ./cronRootReport-$ currentReleaseTag
1891+ _wget_githubRelease-fromTag-fetchReport "$currentRepository" "$ currentReleaseTag" "cronRootReport"
18971892 env :
1893+ currentRepository : ${{ github.repository }}
18981894 currentReleaseTag : ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999
18991895 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19001896
19011897
1902- - name : analysis! missing-binaries
1898+
1899+ # lsmodReport
1900+ - name : fetch! binReport coreReport dpkg
19031901 shell : bash
19041902 run : |
1905- #echo -n
1906- _safeEcho() {
1907- printf '%s' "$1"
1908- shift
1909-
1910- [[ "$@" == "" ]] && return 0
1911-
1912- local currentArg
1913- for currentArg in "$@"
1914- do
1915- printf '%s' " "
1916- printf '%s' "$currentArg"
1917- done
1918- return 0
1919- }
1903+ #lsmodReport
1904+ ./ubiquitous_bash.sh _wget_githubRelease-fromTag-analysisReport-fetch 20 binReport coreReport dpkg
1905+ env :
1906+ currentRepository : ${{ github.repository }}
1907+ currentReleaseTag : ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999
1908+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19201909
1921- #echo
1922- _safeEcho_newline() {
1923- _safeEcho "$@"
1924- printf '\n'
1925- }
1926-
1927- mkdir -p ./_local/analysis
1928-
1929- #cp ./_local/lsmodReport ./_local/analysis/lsmodReport
1930- #cp ./_local/binReport ./_local/analysis/binReport
1931- #cp ./_local/coreReport ./_local/analysis/coreReport
1932- #cp ./_local/dpkg ./_local/analysis/dpkg
1933-
1934- cd ./_local/analysis
1935-
1936- # Get the list of releases
1937- RELEASES=$(curl --fail --retry 5 --retry-delay 90 --connect-timeout 45 --max-time 600 -s -H "Authorization: token $GH_TOKEN" https://api.github.com/repos/"${{ github.repository }}"/releases?per_page=100&page=1)
1938-
1939- # Download binReport file for the current release
1940- #curl --fail --retry 5 --retry-delay 90 --connect-timeout 45 --max-time 600 -s -H "Authorization: token $GH_TOKEN" -L -o "lsmodReport-$currentReleaseTag" "https://github.com/"${{ github.repository }}"/releases/download/$currentReleaseTag/lsmodReport"
1941- curl --fail --retry 5 --retry-delay 90 --connect-timeout 45 --max-time 600 -s -H "Authorization: token $GH_TOKEN" -L -o "binReport-$currentReleaseTag" "https://github.com/"${{ github.repository }}"/releases/download/$currentReleaseTag/binReport"
1942- curl --fail --retry 5 --retry-delay 90 --connect-timeout 45 --max-time 600 -s -H "Authorization: token $GH_TOKEN" -L -o "coreReport-$currentReleaseTag" "https://github.com/"${{ github.repository }}"/releases/download/$currentReleaseTag/coreReport"
1943- curl --fail --retry 5 --retry-delay 90 --connect-timeout 45 --max-time 600 -s -H "Authorization: token $GH_TOKEN" -L -o "dpkg-$currentReleaseTag" "https://github.com/"${{ github.repository }}"/releases/download/$currentReleaseTag/dpkg"
1944- curl --fail --retry 5 --retry-delay 90 --connect-timeout 45 --max-time 600 -s -H "Authorization: token $GH_TOKEN" -L -o "customReport-$currentReleaseTag" "https://github.com/"${{ github.repository }}"/releases/download/$currentReleaseTag/customReport"
1945-
1946- # Loop through each release
1947- #local currentIteration
1948- currentIteration=0
1949- #for RELEASE in $(_safeEcho_newline "$RELEASES" | jq -r '.[].tag_name' | sort --reverse); do
1950- for RELEASE in $(_safeEcho_newline "$RELEASES" | jq -r 'sort_by(.published_at) | reverse | .[].tag_name' | head -n 20 | tr -dc 'a-zA-Z0-9\-_.:\n'); do
1951-
1952- currentIteration=$((currentIteration+1))
1953-
1954- # Compare the list of binaries in this release to the current release
1955- if [ "$RELEASE" != "$currentReleaseTag" ]; then
1956-
1957- # Download the binReport file for this release
1958- #[[ "$currentIteration" -lt "5" ]] && curl --no-fail --retry 5 --retry-delay 90 --connect-timeout 45 --max-time 600 -s -H "Authorization: token $GH_TOKEN" -L -o "lsmodReport-$RELEASE" "https://github.com/"${{ github.repository }}"/releases/download/$RELEASE/lsmodReport"
1959- [[ "$currentIteration" -lt "6" ]] && curl --no-fail --retry 5 --retry-delay 90 --connect-timeout 45 --max-time 600 -s -H "Authorization: token $GH_TOKEN" -L -o "binReport-$RELEASE" "https://github.com/"${{ github.repository }}"/releases/download/$RELEASE/binReport"
1960- [[ "$currentIteration" -lt "7" ]] && curl --no-fail --retry 5 --retry-delay 90 --connect-timeout 45 --max-time 600 -s -H "Authorization: token $GH_TOKEN" -L -o "coreReport-$RELEASE" "https://github.com/"${{ github.repository }}"/releases/download/$RELEASE/coreReport"
1961- curl --no-fail --retry 5 --retry-delay 90 --connect-timeout 45 --max-time 600 -s -H "Authorization: token $GH_TOKEN" -L -o "dpkg-$RELEASE" "https://github.com/"${{ github.repository }}"/releases/download/$RELEASE/dpkg"
1962- curl --no-fail --retry 5 --retry-delay 90 --connect-timeout 45 --max-time 600 -s -H "Authorization: token $GH_TOKEN" -L -o "customReport-$RELEASE" "https://github.com/"${{ github.repository }}"/releases/download/$RELEASE/customReport"
1963-
1964- #[[ "$currentIteration" -lt "5" ]] && echo | tee -a ./missing-lsmodReport
1965- #[[ "$currentIteration" -lt "5" ]] && echo "Binaries (lsmod) loaded in $RELEASE but not in currentRelease $currentReleaseTag:" | tee -a ./missing-lsmodReport
1966- #[[ "$currentIteration" -lt "5" ]] && comm -23 <(sort "lsmodReport-$RELEASE") <(sort "lsmodReport-$currentReleaseTag") | tee -a ./missing-lsmodReport
1967- [[ "$currentIteration" -lt "6" ]] && echo | tee -a ./missing-binReport
1968- [[ "$currentIteration" -lt "6" ]] && echo "Binaries (filesystem) in $RELEASE but not in currentRelease $currentReleaseTag:" | tee -a ./missing-binReport
1969- [[ "$currentIteration" -lt "6" ]] && comm -23 <(sort "binReport-$RELEASE") <(sort "binReport-$currentReleaseTag") | tee -a ./missing-binReport
1970- [[ "$currentIteration" -lt "7" ]] && echo | tee -a ./missing-coreReport
1971- [[ "$currentIteration" -lt "7" ]] && echo "Binaries (core) in $RELEASE but not in currentRelease $currentReleaseTag:" | tee -a ./missing-coreReport
1972- [[ "$currentIteration" -lt "7" ]] && comm -23 <(sort "coreReport-$RELEASE" | grep -v '_local/h') <(sort "coreReport-$currentReleaseTag" | grep -v '_local/h') | tee -a ./missing-coreReport
1973- echo | tee -a ./missing-dpkg
1974- echo "Binaries (dpkg) in $RELEASE but not in currentRelease $currentReleaseTag:" | tee -a ./missing-dpkg
1975- comm -23 <(sort "dpkg-$RELEASE") <(sort "dpkg-$currentReleaseTag") | tee -a ./missing-dpkg
1976- echo | tee -a ./missing-customReport
1977- echo "Binaries (filesystem: custom) in $RELEASE but not in currentRelease $currentReleaseTag:" | tee -a ./missing-customReport
1978- comm -23 <(sort "customReport-$RELEASE" | grep -v '_local/h' | grep -v 'docker/fuse-overlayfs' | grep -v 'docker/image/fuse-overlayfs' | grep -v 'docker/containerd' | grep -v 'docker/containers') <(sort "customReport-$currentReleaseTag" | grep -v '_local/h' | grep -v 'docker/fuse-overlayfs' | grep -v 'docker/image/fuse-overlayfs' | grep -v 'docker/containerd' | grep -v 'docker/containers') | tee -a ./missing-customReport
1979- fi
1980- done
1910+ # lsmodReport
1911+ - name : select! binReport coreReport dpkg
1912+ shell : bash
1913+ run : |
1914+ #lsmodReport
1915+ ./ubiquitous_bash.sh _wget_githubRelease-fromTag-analysisReport-select binReport coreReport dpkg
19811916 env :
1917+ currentRepository : ${{ github.repository }}
19821918 currentReleaseTag : ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999
19831919 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19841920
1985- - name : release! analysis! missing-binaries
1921+ # missing-lsmodReport
1922+ - name : analysis! missing-binReport missing-coreReport missing-dpkg
19861923 shell : bash
19871924 run : |
1988- #gh release upload ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999 ./_local/analysis/missing-lsmodReport
1989- gh release upload ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999 ./_local/analysis/missing-binReport
1990- gh release upload ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999 ./_local/analysis/missing-coreReport
1991- gh release upload ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999 ./_local/analysis/missing-dpkg
1992- gh release upload ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999 ./_local/analysis/missing-customReport
1925+ #lsmodReport
1926+ ./ubiquitous_bash.sh _wget_githubRelease-fromTag-analysisReport-analysis 65 binReport coreReport dpkg
1927+ env :
1928+ currentRepository : ${{ github.repository }}
1929+ currentReleaseTag : ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999
1930+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1931+
1932+ # missing-lsmodReport`
1933+ # - name: release! missing-binReport missing-coreReport missing-dpkg missing-customReport
1934+ # uses: softprops/action-gh-release@v1
1935+ # with:
1936+ # tag_name: ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999
1937+ # name: build
1938+ # files: |
1939+ # #./_local/analysisTmp/missing-lsmodReport
1940+ # ./_local/analysisTmp/missing-binReport
1941+ # ./_local/analysisTmp/missing-coreReport
1942+ # ./_local/analysisTmp/missing-dpkg
1943+ # ./_local/analysisTmp/missing-customReport
1944+
1945+ # missing-lsmodReport
1946+ - name : release! analysis! missing-binReport missing-coreReport missing-dpkg missing-customReport
1947+ shell : bash
1948+ run : |
1949+ #gh release upload ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999 ./_local/analysisTmp/missing-lsmodReport
1950+ gh release upload ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999 ./_local/analysisTmp/missing-binReport
1951+ gh release upload ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999 ./_local/analysisTmp/missing-coreReport
1952+ gh release upload ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999 ./_local/analysisTmp/missing-dpkg
1953+ gh release upload ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999 ./_local/analysisTmp/missing-customReport
19931954 env :
19941955 GH_TOKEN : ${{ github.token }}
1956+
1957+ # missing-lsmodReport
1958+ # ./_local/analysisTmp/missing-lsmodReport
1959+ - name : ls! release! missing-binReport missing-coreReport missing-dpkg missing-customReport
1960+ shell : bash
1961+ run : |
1962+ ls ./_local/analysisTmp/missing-binReport ./_local/analysisTmp/missing-coreReport ./_local/analysisTmp/missing-dpkg ./_local/analysisTmp/missing-customReport
1963+ ./ubiquitous_bash.sh _safeRMR-analysisTmp
1964+ env :
1965+ currentRepository : ${{ github.repository }}
1966+ currentReleaseTag : ${{ inputs.DANGERfast_EXPERIMENT }}-${{ github.run_id }}-9999
1967+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1968+
19951969
19961970 - name : report! API Rate Limit
19971971 shell : bash
0 commit comments