From 5ed3b675c81f1a14986a635e65eba5c611c960c1 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Thu, 10 Dec 2020 11:57:16 +0300 Subject: [PATCH 01/14] Upload to GitHub pages with GitHub Actions This uses manual workflow and GitHub Pages action by @crazy-max --- .github/workflows/manual.yml | 50 ++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/manual.yml diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml new file mode 100644 index 000000000000..5756b4f37838 --- /dev/null +++ b/.github/workflows/manual.yml @@ -0,0 +1,50 @@ +name: Manual trigger to build and upload to pages + +on: + # Runs when manually triggered using the UI or API. + workflow_dispatch: + inputs: + name: + # Friendly description to be shown in the UI instead of 'name' + description: 'Person to greet' + # Default value if no value is explicitly provided + default: 'World' + # Input has to be provided for the workflow to run + required: true + +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Runs a single command using the runners shell + - name: Send greeting + run: echo "Hello ${{ github.event.inputs.name }}" + + - name: Build + run: make all + + - name: Upload to GitHub Pages + uses: crazy-max/ghaction-github-pages@v2.2.0 + with: + # Git branch where assets will be deployed + #target_branch: # optional, default is gh-pages + # Create incremental commit instead of doing push force + keep_history: true # optional, default is false + # Allow an empty commit to be created + #allow_empty_commit: # optional, default is true + # Build directory to deploy + build_dir: public_html + # The committer name and email address + #committer: # optional + # The author name and email address + #author: # optional + # Commit message + #commit_message: # optional + # Write the given domain name to the CNAME file + #fqdn: # optional + # Allow Jekyll to build your site + jekyll: false # optional, default is true From 90bfbc9ffc2179cb9e63ed23cbb476b1bb53ec34 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Thu, 10 Dec 2020 12:11:41 +0300 Subject: [PATCH 02/14] Workflow checkout is not automatic --- .github/workflows/manual.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 5756b4f37838..6e3f8ed0447d 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -8,9 +8,9 @@ on: # Friendly description to be shown in the UI instead of 'name' description: 'Person to greet' # Default value if no value is explicitly provided - default: 'World' + #default: 'World' # Input has to be provided for the workflow to run - required: true + #required: true jobs: # This workflow contains a single job called "build" @@ -21,9 +21,13 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Runs a single command using the runners shell - - name: Send greeting + - name: Greet run: echo "Hello ${{ github.event.inputs.name }}" + # Code checkout is not automatic + - name: Checkout + uses: actions/checkout@v2 + - name: Build run: make all From 71a1deb2871bef825a5d90dc3a8297f9cd60479b Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Thu, 10 Dec 2020 16:11:47 +0300 Subject: [PATCH 03/14] GITHUB_TOKEN needs to be passed explicitly --- .github/workflows/manual.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 6e3f8ed0447d..d0e263c3f302 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -52,3 +52,5 @@ jobs: #fqdn: # optional # Allow Jekyll to build your site jekyll: false # optional, default is true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 38e6096df8c538445e9c00fb487b676f20af5fc0 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Sat, 30 Jan 2021 23:37:10 +0300 Subject: [PATCH 04/14] Clean up workflow and install dependencies from a filelist --- .github/workflows/manual.yml | 11 +++-------- dependencies.txt | 7 +++++++ 2 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 dependencies.txt diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index d0e263c3f302..2ba8d61f96d0 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -3,14 +3,6 @@ name: Manual trigger to build and upload to pages on: # Runs when manually triggered using the UI or API. workflow_dispatch: - inputs: - name: - # Friendly description to be shown in the UI instead of 'name' - description: 'Person to greet' - # Default value if no value is explicitly provided - #default: 'World' - # Input has to be provided for the workflow to run - #required: true jobs: # This workflow contains a single job called "build" @@ -28,6 +20,9 @@ jobs: - name: Checkout uses: actions/checkout@v2 + - name: Install + run: apt install $(grep "^[^#]" dependencies.txt) + - name: Build run: make all diff --git a/dependencies.txt b/dependencies.txt new file mode 100644 index 000000000000..e3d1964bd203 --- /dev/null +++ b/dependencies.txt @@ -0,0 +1,7 @@ +# System dependencies for building status package list for Fedora +# +# dnf install $(grep "^[^#]" dependencies.txt) + +make +python3-requests +python3-tqdm From 38e3645d68034a379884979d3e145a9d043b8faa Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Sun, 31 Jan 2021 00:23:59 +0300 Subject: [PATCH 05/14] Install needs `sudo` --- .github/workflows/manual.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 2ba8d61f96d0..f91b236db86a 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -21,7 +21,7 @@ jobs: uses: actions/checkout@v2 - name: Install - run: apt install $(grep "^[^#]" dependencies.txt) + run: sudo apt-get -y install $(grep "^[^#]" dependencies.txt) - name: Build run: make all From 1b8d0dcd680ebce3ffe1fa29b79cfdebdd8052ff Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Sun, 31 Jan 2021 00:32:26 +0300 Subject: [PATCH 06/14] Need newer `tqdm` with `wrapattr` Verion that ships with Ubuntu is too old. Installing with `pip` --- .github/workflows/manual.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index f91b236db86a..2847bea688d1 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -8,7 +8,7 @@ jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 # Steps represent a sequence of tasks that will be executed as part of the job steps: @@ -21,7 +21,8 @@ jobs: uses: actions/checkout@v2 - name: Install - run: sudo apt-get -y install $(grep "^[^#]" dependencies.txt) + #run: sudo apt-get -y install $(grep "^[^#]" dependencies.txt) + run: pip install tqdm - name: Build run: make all From 4209d5f4a1f71501d5b18853d7d1b876b216317a Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Tue, 18 May 2021 04:06:23 +0300 Subject: [PATCH 07/14] Set SITEMAP_URL for hosting with GitHub Pages --- .github/workflows/manual.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 2847bea688d1..91858433062b 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -25,6 +25,8 @@ jobs: run: pip install tqdm - name: Build + env: + SITEMAP_URL: https://abitrolly.github.io/fedora-packages-static/ run: make all - name: Upload to GitHub Pages From 5bb00d9476f272d7a5288e5a7385939b0b92e48b Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Tue, 18 May 2021 04:09:35 +0300 Subject: [PATCH 08/14] Action runner is out of space, try to check it with `tdu` and `duf` And switch to latest checkout action version --- .github/workflows/manual.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 91858433062b..008ef10cc60d 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -16,21 +16,34 @@ jobs: - name: Greet run: echo "Hello ${{ github.event.inputs.name }}" + - name: Install disk space diagnostic tools + run: | + brew install duf + brew install abitrolly/tap/tdu + duf + tdu + tdu / + # Code checkout is not automatic - name: Checkout uses: actions/checkout@v2 - name: Install #run: sudo apt-get -y install $(grep "^[^#]" dependencies.txt) - run: pip install tqdm + run: | + pip install tqdm + duf - name: Build env: SITEMAP_URL: https://abitrolly.github.io/fedora-packages-static/ - run: make all + run: | + make all + duf + tdu - name: Upload to GitHub Pages - uses: crazy-max/ghaction-github-pages@v2.2.0 + uses: crazy-max/ghaction-github-pages@v2.4.1 with: # Git branch where assets will be deployed #target_branch: # optional, default is gh-pages From 1d8f753233ef4256b745ea8e87b4e978584eb9a0 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Tue, 18 May 2021 19:26:14 +0300 Subject: [PATCH 09/14] Use plain `du` to get largest dirs --- .github/workflows/manual.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 008ef10cc60d..957aefe22950 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -16,13 +16,18 @@ jobs: - name: Greet run: echo "Hello ${{ github.event.inputs.name }}" - - name: Install disk space diagnostic tools + - name: Disk space diagnostic run: | brew install duf brew install abitrolly/tap/tdu + echo "--------- DUF" duf + echo "--------- TDU" tdu + echo "--------- TDU /" tdu / + echo "--------- Plain du" + du -Sh / | sort -rh | head -30 # Code checkout is not automatic - name: Checkout From 73c87f4af90a7848738be67cb94b64b3ead37c7d Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Thu, 20 May 2021 20:38:04 +0300 Subject: [PATCH 10/14] Clean with `dust` --- .github/workflows/manual.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 957aefe22950..945a585d42ef 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -20,6 +20,7 @@ jobs: run: | brew install duf brew install abitrolly/tap/tdu + brew install dust echo "--------- DUF" duf echo "--------- TDU" @@ -27,17 +28,21 @@ jobs: echo "--------- TDU /" tdu / echo "--------- Plain du" - du -Sh / | sort -rh | head -30 + du -ah / | sort -rh | head -30 + echo "--------- Dust" + dust / # Code checkout is not automatic - name: Checkout uses: actions/checkout@v2 - - name: Install + - name: Install and free space #run: sudo apt-get -y install $(grep "^[^#]" dependencies.txt) run: | pip install tqdm - duf + sudo rm -rf /usr/share/dotnet + sudo rm -rf /usr/local/lib/android + dust / - name: Build env: From 8274737e73b317a36626a8989ab3b75f826d4fee Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Thu, 20 May 2021 21:52:24 +0300 Subject: [PATCH 11/14] Move disk space diagnostic to a separate Action to speed up https://github.com/yakshaveinc/linux/actions/workflows/03diskspace.yml --- .github/workflows/manual.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 945a585d42ef..37ccb540cd46 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -16,21 +16,12 @@ jobs: - name: Greet run: echo "Hello ${{ github.event.inputs.name }}" - - name: Disk space diagnostic + - name: Disk space utils run: | brew install duf - brew install abitrolly/tap/tdu brew install dust - echo "--------- DUF" + brew install abitrolly/tap/tdu duf - echo "--------- TDU" - tdu - echo "--------- TDU /" - tdu / - echo "--------- Plain du" - du -ah / | sort -rh | head -30 - echo "--------- Dust" - dust / # Code checkout is not automatic - name: Checkout @@ -50,7 +41,7 @@ jobs: run: | make all duf - tdu + tdu -human - name: Upload to GitHub Pages uses: crazy-max/ghaction-github-pages@v2.4.1 From b705f3fee9175d46d5ccf698318006c087621730 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Mon, 31 May 2021 12:41:46 +0300 Subject: [PATCH 12/14] Newer Pages action is less verbose https://github.com/crazy-max/ghaction-github-pages/pull/147 --- .github/workflows/manual.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 37ccb540cd46..f88de76b952a 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -44,7 +44,7 @@ jobs: tdu -human - name: Upload to GitHub Pages - uses: crazy-max/ghaction-github-pages@v2.4.1 + uses: crazy-max/ghaction-github-pages@v2.5.0 with: # Git branch where assets will be deployed #target_branch: # optional, default is gh-pages From 734f095008754f51c24aea3bdba7851c1a415d6a Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Mon, 31 May 2021 12:55:05 +0300 Subject: [PATCH 13/14] Install missing `defusedxml` `dependencies.txt` can not be used.. what a shame --- .github/workflows/manual.yml | 4 ++-- dependencies.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index f88de76b952a..c6b40e2577e4 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -27,10 +27,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Install and free space + - name: Install dependencies and free space #run: sudo apt-get -y install $(grep "^[^#]" dependencies.txt) run: | - pip install tqdm + pip install tqdm defusedxml sudo rm -rf /usr/share/dotnet sudo rm -rf /usr/local/lib/android dust / diff --git a/dependencies.txt b/dependencies.txt index e3d1964bd203..8fd533c2c218 100644 --- a/dependencies.txt +++ b/dependencies.txt @@ -3,5 +3,6 @@ # dnf install $(grep "^[^#]" dependencies.txt) make +python3-defusedxml python3-requests python3-tqdm From 752b0f9164c8139f75474ea4dbcc3938c8b64b0c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 28 Dec 2021 14:59:59 +0000 Subject: [PATCH 14/14] Bump ansi-regex from 5.0.0 to 5.0.1 in /vue Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1. - [Release notes](https://github.com/chalk/ansi-regex/releases) - [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1) --- updated-dependencies: - dependency-name: ansi-regex dependency-type: indirect ... Signed-off-by: dependabot[bot] --- vue/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vue/package-lock.json b/vue/package-lock.json index 96e5ae95c012..dc3849923b0e 100644 --- a/vue/package-lock.json +++ b/vue/package-lock.json @@ -493,9 +493,9 @@ "dev": true }, "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true }, "ansi-styles": {