docker: Use GitHub-mirrored TF-A repository to avoid clone failures
PATCH 1/1 docker: Use GitHub-mirrored TF-A repository to avoid clone failures
GitHub Actions consistently fails to clone the upstream TF-A repo, returning the error: "The requested URL returned error: 403".
To improve compatibility in building the docker image with GitHub Actions, switch to the GitHub-mirrored TF-A repository instead.
---
tools/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/docker/Dockerfile +1 -1
@@ -243,7 +243,7 @@ RUN git clone --depth=1 https://github.com/OP-TEE/optee_os.git /tmp/optee_os \ # Build fiptool, bl1 and fip for fvp and qemu_arm64 RUN git clone --depth=1 -b mbedtls-3.6 https://github.com/ARMmbed/mbedtls.git /tmp/mbedtls -RUN git clone --depth=1 https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git /tmp/tf-a \ +RUN git clone --depth=1 https://github.com/ARM-software/arm-trusted-firmware.git /tmp/tf-a \ -b v2.13.0 && \ cd /tmp/tf-a/ && \ make CROSS_COMPILE=/opt/gcc-${TCVER}-nolibc/aarch64-linux/bin/aarch64-linux- \
Signature · 1 line
2.34.1
Quoted 17 lines · Bin Meng
GitHub Actions consistently fails to clone the upstream TF-A repo, returning the error: "The requested URL returned error: 403".
To improve compatibility in building the docker image with GitHub Actions, switch to the GitHub-mirrored TF-A repository instead.
Signed-off-by Bin Meng <[email protected]>---
tools/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/docker/Dockerfile +0
-0
tools/docker/Dockerfile RUN git clone --depth=1 https://github.com/OP-TEE/optee_os.git /tmp/optee_os \ · line 249
Quoted 8 lines
tools/docker/Dockerfile +1
-1@@ -243,7 +243,7 @@ RUN git clone --depth=1 https://github.com/OP-TEE/optee_os.git /tmp/optee_os \ # Build fiptool, bl1 and fip for fvp and qemu_arm64 RUN git clone --depth=1 -b mbedtls-3.6 https://github.com/ARMmbed/mbedtls.git /tmp/mbedtls -RUN git clone --depth=1 https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git /tmp/tf-a \ +RUN git clone --depth=1 https://github.com/ARM-software/arm-trusted-firmware.git /tmp/tf-a \ -b v2.13.0 && \ cd /tmp/tf-a/ && \ make CROSS_COMPILE=/opt/gcc-${TCVER}-nolibc/aarch64-linux/bin/aarch64-linux- \
How consistent is this failure? I've had problems this past year building various parts of the container due to AI scraper overloads but never had a problem with the TF-A repository.
That said, it would also be good to document how to build the containers with GitHub actions.
Signature · 1 line
Tom
Quoted 20 lines · Tom Rini
Quoted 18 lines · Bin Meng
GitHub Actions consistently fails to clone the upstream TF-A repo, returning the error: "The requested URL returned error: 403".
To improve compatibility in building the docker image with GitHub Actions, switch to the GitHub-mirrored TF-A repository instead.
Signed-off-by Bin Meng <[email protected]>---
tools/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/docker/Dockerfile +0
-0@@ -243,7 +243,7 @@ RUN git clone --depth=1 https://github.com/OP-TEE/optee_os.git /tmp/optee_os \
Quoted 11 lines
tools/docker/Dockerfile RUN git clone --depth=1 https://github.com/OP-TEE/optee_os.git /tmp/optee_os \ · line 249
Quoted 7 lines
tools/docker/Dockerfile +1
-1# Build fiptool, bl1 and fip for fvp and qemu_arm64 RUN git clone --depth=1 -b mbedtls-3.6 https://github.com/ARMmbed/mbedtls.git /tmp/mbedtls -RUN git clone --depth=1 https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git /tmp/tf-a \ +RUN git clone --depth=1 https://github.com/ARM-software/arm-trusted-firmware.git /tmp/tf-a \ -b v2.13.0 && \ cd /tmp/tf-a/ && \ make CROSS_COMPILE=/opt/gcc-${TCVER}-nolibc/aarch64-linux/bin/aarch64-linux- \How consistent is this failure? I've had problems this past year building various parts of the container due to AI scraper overloads but never had a problem with the TF-A repository.
FWIW,
The OP-TEE OS CI is also running GitHub Actions, and I have seen Git clone failures with projects hosted on git.trustedfirmware.org on several occasions (TF-A, Hafnium). GitHub on the other hand has been rock solid and fast (not surprising I suppose, since this is GitHub <-> GitHub).
Signature · 1 line
Jerome
Quoted 35 lines · Jerome Forissier
Quoted 20 lines · Tom Rini
Quoted 18 lines · Bin Meng
GitHub Actions consistently fails to clone the upstream TF-A repo, returning the error: "The requested URL returned error: 403".
To improve compatibility in building the docker image with GitHub Actions, switch to the GitHub-mirrored TF-A repository instead.
Signed-off-by Bin Meng <[email protected]>---
tools/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/docker/Dockerfile +0
-0@@ -243,7 +243,7 @@ RUN git clone --depth=1 https://github.com/OP-TEE/optee_os.git /tmp/optee_os \Quoted 11 lines
tools/docker/Dockerfile RUN git clone --depth=1 https://github.com/OP-TEE/optee_os.git /tmp/optee_os \ · line 249
Quoted 7 lines
tools/docker/Dockerfile +1
-1# Build fiptool, bl1 and fip for fvp and qemu_arm64 RUN git clone --depth=1 -b mbedtls-3.6 https://github.com/ARMmbed/mbedtls.git /tmp/mbedtls -RUN git clone --depth=1 https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git /tmp/tf-a \ +RUN git clone --depth=1 https://github.com/ARM-software/arm-trusted-firmware.git /tmp/tf-a \ -b v2.13.0 && \ cd /tmp/tf-a/ && \ make CROSS_COMPILE=/opt/gcc-${TCVER}-nolibc/aarch64-linux/bin/aarch64-linux- \How consistent is this failure? I've had problems this past year building various parts of the container due to AI scraper overloads but never had a problem with the TF-A repository.
Quoted 6 lines
FWIW,
The OP-TEE OS CI is also running GitHub Actions, and I have seen Git clone failures with projects hosted on git.trustedfirmware.org on several occasions (TF-A, Hafnium). GitHub on the other hand has been rock solid and fast (not surprising I suppose, since this is GitHub <-> GitHub).
That's just strange to me and sounds like a GitHub Actions problem. I'll also just note that I had a transient github download failure this morning :)
Signature · 1 line
Tom
Quoted 18 lines · Bin Meng
GitHub Actions consistently fails to clone the upstream TF-A repo, returning the error: "The requested URL returned error: 403".
To improve compatibility in building the docker image with GitHub Actions, switch to the GitHub-mirrored TF-A repository instead.
Signed-off-by Bin Meng <[email protected]>---
tools/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/docker/Dockerfile +0
-0
tools/docker/Dockerfile RUN git clone --depth=1 https://github.com/OP-TEE/optee_os.git /tmp/optee_os \ · line 246
Quoted 5 lines
tools/docker/Dockerfile +1
-1@@ -243,7 +243,7 @@ RUN git clone --depth=1 https://github.com/OP-TEE/optee_os.git /tmp/optee_os \ # Build fiptool, bl1 and fip for fvp and qemu_arm64 RUN git clone --depth=1 -b mbedtls-3.6 https://github.com/ARMmbed/mbedtls.git /tmp/mbedtls -RUN git clone --depth=1 https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git /tmp/tf-a \ +RUN git clone --depth=1 https://github.com/ARM-software/arm-trusted-firmware.git /tmp/tf-a \
If you're going to use a github mirror use the TFA one, I've seen issues with the way they sync to the one above in the past where things like tags disappear.
Quoted 6 lines
tools/docker/Dockerfile +0
-1-b v2.13.0 && \ cd /tmp/tf-a/ && \ make CROSS_COMPILE=/opt/gcc-${TCVER}-nolibc/aarch64-linux/bin/aarch64-linux- \ --2.34.1
Quoted 29 lines · Peter Robinson
Quoted 18 lines · Bin Meng
GitHub Actions consistently fails to clone the upstream TF-A repo, returning the error: "The requested URL returned error: 403".
To improve compatibility in building the docker image with GitHub Actions, switch to the GitHub-mirrored TF-A repository instead.
Signed-off-by Bin Meng <[email protected]>---
tools/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/docker/Dockerfile +0
-0tools/docker/Dockerfile RUN git clone --depth=1 https://github.com/OP-TEE/optee_os.git /tmp/optee_os \ · line 246
Quoted 5 lines
tools/docker/Dockerfile +1
-1@@ -243,7 +243,7 @@ RUN git clone --depth=1 https://github.com/OP-TEE/optee_os.git /tmp/optee_os \ # Build fiptool, bl1 and fip for fvp and qemu_arm64 RUN git clone --depth=1 -b mbedtls-3.6 https://github.com/ARMmbed/mbedtls.git /tmp/mbedtls -RUN git clone --depth=1 https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git /tmp/tf-a \ +RUN git clone --depth=1 https://github.com/ARM-software/arm-trusted-firmware.git /tmp/tf-a \If you're going to use a github mirror use the TFA one, I've seen issues with the way they sync to the one above in the past where things like tags disappear.
+1, good catch. It's then one we've been using for OP-TEE CI.
Thanks,
Signature · 1 line
Jerome
Quoted 7 lines
Quoted 7 lines
tools/docker/Dockerfile +0
-1-b v2.13.0 && \ cd /tmp/tf-a/ && \ make CROSS_COMPILE=/opt/gcc-${TCVER}-nolibc/aarch64-linux/bin/aarch64-linux- \ --2.34.1