Samsung/ONE-vscode

onecc-docker fails due to downloading from onert release

dayo09 opened this issue · 4 comments

dayo09 commented

What?

ONE has recently released onert-micro.
Currently, onecc-docker downloads onecc debian package with the command wget --no-check-certificate https://github.com/Samsung/ONE/releases/download/${VERSION}/one-compiler-bionic_${VERSION}_amd64.deb. It fails because it tries downloading one compiler with invalid version (onert-0.1.0).

The command that isn't working is :

RUN apt-get update && apt-get install -qqy --no-install-recommends     wget     ca-certificates     && wget --no-check-certificate https://github.com/Samsung/ONE/releases/download/onert-micro-0.1.0/one-compiler-bionic_onert-micro-0.1.0_amd64.deb     && apt-get install -y ./one-compiler-bionic_onert-micro-0.1.0_amd64.deb     && rm -rf /var/lib/apt/lists/*:

NOTE THAT onert release doesn't include any one-compiler package such as one-compiler-bionic_onert-micro-0.1.0_amd64.deb

reference ONERT-MICRO 0.1.0

Thank you for reporting. This issue should be modified in ONE project. This is known issue. I have fixed this issue in a simple way because I don't have more resources. I will improve this feature as soon as possible.

Related issue: #1553 Samsung/ONE#10773

dayo09 commented

It is expected that Samsung/ONE#11049 resolves this problem.

dayo09 commented

Tested on 2023-07-20

1. The daily-distribution of debian onecc-docker package onecc-docker_0.1.0-0~202307190231~ubuntu20.04.1_amd64.deb is installed.

  • From the log during prerequisite installation:
(데이터베이스 읽는중 ...현재 333284개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../onecc-docker_0.1.0-0~202307190231~ubuntu20.04.1_amd64.deb ...
Unpacking onecc-docker (0.1.0-0~202307190231~ubuntu20.04.1) ...
onecc-docker (0.1.0-0~202307190231~ubuntu20.04.1) 설정하는 중입니다 ...

2. Run onecc succeeds on every SECOND trial

  • (1) On the first run, it takes forever (more than 2 min, doesn't finish)
  • (2) On the second run, after refreshing the window it completes in 30 sec.
[onecc-docker] Build docker image ...
[onecc-docker] Docker image is built successfully.
[2023. 7. 20. 오후 1:50:16][ToolRunner][info] child process exited with code 0
[2023. 7. 20. 오후 1:50:16][ToolRunner][info] Build Success.

[2023. 7. 20. 오후 1:50:16][JobRunner][info] All jobs have been completed.

(1) On the first run, it takes forever (more than 2 min, doesn't finish)

This is because it takes a very long time to generate new docker image. We can provide some logs so that users can recognize them.