| 25 Oct 2021 |
Yuka (she/her) | hmm | 14:35:51 |
danielrf | We should already have the packages/modules/Permissions patch | 14:35:54 |
kranzes | danielrf:
date LineageOS"
on: { schedule: [{ cron: '0 0 1,15 * *' }], workflow_dispatch }
jobs:
updates:
name: "Update LineageOS"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.5
- uses: cachix/install-nix-action@v14.1
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.5pre20211019_4a2b7cc/install
extra_nix_config: "experimental-features = nix-command flakes"
- name: "Set OLD_BUILD_NUMBER variable"
run: echo "OLD_BUILD_NUMBER=$(nix eval -f . --arg configuration "{flavor=\"lineageos\";}" --raw config.buildNumber)"
- name: "Fetch latest lineage-18.1 changes"
run: nix develop -c ./flavors/lineageos/update.sh lineage-18.1
- name: "Fetch latest lineage-17.1 changes"
run: nix develop -c ./flavors/lineageos/update.sh lineage-17.1
- name: "Update buildDateTime"
run: sed -i "s/buildDateTime = mkDefault .*/buildDateTime = mkDefault $(date +%s);/" flavors/lineageos/default.nix
- name: "Set NEW_BUILD_DATE_TIME variable"
run: echo "NEW_BUILD_NUMBER=$(nix eval -f . --arg configuration "{flavor=\"lineageos\";}" --raw config.buildNumber)"
- name: "Create Pull Request"
uses: peter-evans/create-pull-request@v3.10.1
with:
commit-message: "lineageos: ${{ env.OLD_BUILD_NUMBER }} -> ${{ env.NEW_BUILD_NUMBER }}"
branch: "lineageos-${{ env.NEW_BUILD_NUMBER }}"
delete-branch : true
| 15:06:36 |
kranzes | 👀 | 15:06:39 |
kranzes | * danielrf:
date LineageOS"
on: { schedule: [{ cron: '0 0 1,15 * *' }], workflow_dispatch }
jobs:
updates:
name: "Update LineageOS"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.5
- uses: cachix/install-nix-action@v14.1
with:
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.5pre20211019_4a2b7cc/install
extra_nix_config: "experimental-features = nix-command flakes"
- name: "Set OLD_BUILD_NUMBER variable"
run: echo "OLD_BUILD_NUMBER=$(nix eval -f . --arg configuration "{flavor=\"lineageos\";}" --raw config.buildNumber)"
- name: "Fetch latest lineage-18.1 changes"
run: nix develop -c ./flavors/lineageos/update.sh lineage-18.1
- name: "Fetch latest lineage-17.1 changes"
run: nix develop -c ./flavors/lineageos/update.sh lineage-17.1
- name: "Update buildDateTime"
run: sed -i "s/buildDateTime = mkDefault .*/buildDateTime = mkDefault $(date +%s);/" flavors/lineageos/default.nix
- name: "Set NEW_BUILD_DATE_TIME variable"
run: echo "NEW_BUILD_NUMBER=$(nix eval -f . --arg configuration "{flavor=\"lineageos\";}" --raw config.buildNumber)"
- name: "Create Pull Request"
uses: peter-evans/create-pull-request@v3.10.1
with:
commit-message: "lineageos: ${{ env.OLD_BUILD_NUMBER }} -> ${{ env.NEW_BUILD_NUMBER }}"
branch: "lineageos-${{ env.NEW_BUILD_NUMBER }}"
delete-branch : true
| 15:06:49 |
kranzes | Not ready yet | 15:06:56 |
kranzes | What do you think the body of the PR should be? | 15:08:26 |
kranzes | and maybe a special PR label | 15:08:38 |
kranzes | https://github.com/peter-evans/create-pull-request | 15:08:52 |
kranzes | In reply to @kranzes:matrix.org What do you think the body of the PR should be? danielrf Also when should the workflow be run, by a cron job? | 16:11:53 |
kranzes | https://github.com/danielfullmer/robotnix/pull/130/files | 16:33:06 |
kranzes | Opened a draft PR with the workflow almost finished | 16:33:21 |
kranzes | just need write a nicer body message for the PR it opens | 16:33:40 |
kranzes | * just need to write a nicer body message for the PR it opens | 16:33:47 |
kranzes | Which someone here can help me with :) | 16:33:55 |
danielrf | Thanks for the PR. Sorry I'm stuck in meetings all day today but I'll try to take a closer look at it soon | 16:36:06 |
kranzes |  Download image.png | 16:39:25 |
kranzes | No worries!, I am testing it right now on a new branch | 16:39:42 |
kranzes | git revision is c3bc8c744e81f65fe4f15ec94c5dfb8c66971510
path is /nix/store/m5bqn6cmi71plhn7rzqczgh7ihfss971-android_device_htc_msm8974-common
git human-readable version is -- none --
Commit date is 2021-07-24 16:58:36 +0200
hash is 1jj7026zc6v001m8qh7v6zq2wvzz9vx7rp71b1vpxrqa2y3x239h
Initialized empty Git repository in /tmp/git-checkout-tmp-iWaKJ46I/android_kernel_bq_msm8953/.git/
From https://github.com/LineageOS/android_kernel_bq_msm8953
* branch lineage-18.1 -> FETCH_HEAD
* [new branch] lineage-18.1 -> origin/lineage-18.1
Switched to a new branch 'fetchgit'
removing `.git'...
warning: unknown setting 'experimental-features'
warning: dumping very large path (> 256 MiB); this may run out of memory
warning: dumping very large path (> 256 MiB); this may run out of memory
error: error: writing to file: No space left on device
Checking out https://github.com/LineageOS/android_hardware_samsung_slsi_exynos7580 refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_device_xiaomi_msm8998-common refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_hardware_nvidia_thermal refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_device_htc_m8-common refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_kernel_nextbit_msm8992 refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_hardware_samsung_slsi_libbt refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_hardware_samsung_slsi_exynos refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_kernel_motorola_msm8996 refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_kernel_xiaomi_msm8996 refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_kernel_motorola_exynos9610 refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_kernel_google_msm refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_device_oneplus_sm8150-common refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_kernel_samsung_msm8974 refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_device_lge_common refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_device_htc_msm8974-common refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_kernel_bq_msm8953 refs/heads/lineage-18.1
Traceback (most recent call last):
File "./update_device_dirs.py", line 182, in <module>
main()
File "./update_device_dirs.py", line 168, in main
fetch_device_dirs(metadata, "https://github.com/LineageOS", args.branch,
File "./update_device_dirs.py", line 76, in fetch_device_dirs
dir_info = fetch_relpath(dirs, relpath, url, branch)
File "./update_device_dirs.py", line 39, in fetch_relpath
dirs[relpath] = checkout_git(url, ref)
File "/nix/store/18k1hihgjd5jiinjmmdwkn9jhikpm06g-scripts/robotnix_common.py", line 50, in checkout_git
json_text = subprocess.check_output(args).decode()
File "/nix/store/32q6ryrb860sksdi1al5djg3pgcpq92l-python3-3.8.11/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/nix/store/32q6ryrb860sksdi1al5djg3pgcpq92l-python3-3.8.11/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['nix-prefetch-git', '--url', 'https://github.com/LineageOS/android_kernel_bq_msm8953', '--rev', 'refs/heads/lineage-18.1']' returned non-zero exit status 1.
Error: Process completed with exit code 1.
| 17:39:48 |
kranzes | * git revision is c3bc8c744e81f65fe4f15ec94c5dfb8c66971510
path is /nix/store/m5bqn6cmi71plhn7rzqczgh7ihfss971-android_device_htc_msm8974-common
git human-readable version is -- none --
Commit date is 2021-07-24 16:58:36 +0200
hash is 1jj7026zc6v001m8qh7v6zq2wvzz9vx7rp71b1vpxrqa2y3x239h
Initialized empty Git repository in /tmp/git-checkout-tmp-iWaKJ46I/android_kernel_bq_msm8953/.git/
From https://github.com/LineageOS/android_kernel_bq_msm8953
* branch lineage-18.1 -> FETCH_HEAD
* [new branch] lineage-18.1 -> origin/lineage-18.1
Switched to a new branch 'fetchgit'
removing `.git'...
warning: unknown setting 'experimental-features'
warning: dumping very large path (> 256 MiB); this may run out of memory
warning: dumping very large path (> 256 MiB); this may run out of memory
error: error: writing to file: No space left on device
Checking out https://github.com/LineageOS/android_hardware_samsung_slsi_exynos7580 refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_device_xiaomi_msm8998-common refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_hardware_nvidia_thermal refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_device_htc_m8-common refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_kernel_nextbit_msm8992 refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_hardware_samsung_slsi_libbt refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_hardware_samsung_slsi_exynos refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_kernel_motorola_msm8996 refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_kernel_xiaomi_msm8996 refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_kernel_motorola_exynos9610 refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_kernel_google_msm refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_device_oneplus_sm8150-common refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_kernel_samsung_msm8974 refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_device_lge_common refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_device_htc_msm8974-common refs/heads/lineage-18.1
Checking out https://github.com/LineageOS/android_kernel_bq_msm8953 refs/heads/lineage-18.1
Traceback (most recent call last):
File "./update_device_dirs.py", line 182, in <module>
main()
File "./update_device_dirs.py", line 168, in main
fetch_device_dirs(metadata, "https://github.com/LineageOS", args.branch,
File "./update_device_dirs.py", line 76, in fetch_device_dirs
dir_info = fetch_relpath(dirs, relpath, url, branch)
File "./update_device_dirs.py", line 39, in fetch_relpath
dirs[relpath] = checkout_git(url, ref)
File "/nix/store/18k1hihgjd5jiinjmmdwkn9jhikpm06g-scripts/robotnix_common.py", line 50, in checkout_git
json_text = subprocess.check_output(args).decode()
File "/nix/store/32q6ryrb860sksdi1al5djg3pgcpq92l-python3-3.8.11/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/nix/store/32q6ryrb860sksdi1al5djg3pgcpq92l-python3-3.8.11/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['nix-prefetch-git', '--url', 'https://github.com/LineageOS/android_kernel_bq_msm8953', '--rev', 'refs/heads/lineage-18.1']' returned non-zero exit status 1.
Error: Process completed with exit code 1.
| 17:40:01 |
kranzes | Workflow failed with this error after an hour or so | 17:40:12 |
kranzes | error: error: writing to file: No space left on device | 17:40:31 |
kranzes | This might be the issue | 17:40:38 |
kranzes | I never used workflows to update vendor/device sources | 17:40:57 |
kranzes | just repo.json | 17:41:02 |
kranzes | so I don't know if it gets too big for github workflows | 17:41:18 |
kranzes | https://docs.github.com/en/actions/learn-github-actions/usage-limits-billing-and-administration#usage-limits | 17:43:22 |
kranzes | https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources | 17:45:45 |
kranzes | tl;dr: Github-hosted runners only have 14GB of SSD space | 17:48:12 |
kranzes | This is something where you danielrf can come in, and explain to me how does it handle the fetching of the sources | 17:49:20 |