Skip to content

Conversation

@WonyoungChoi
Copy link

@WonyoungChoi WonyoungChoi commented Aug 30, 2021

New docker image named "build-engine" contains the following:

  • Additional ubuntu packages : git curl ca-certificates python xz-utils pkg-config libncurses5 libfreetype6-dev
  • depot_tools
  • some .git cached directories to reduce gclient sync time. (dart/**/.git, skia/.git)

After this docker image is registered, prepare-sync.sh script will be run before the gclient sync in the build workflow to remove unnecessary dependencies from DEPS file.

Comment on lines 10 to 18
cat > .gclient << EOF
solutions = [
{ "name" : 'src/flutter',
"url" : 'https://github.com/flutter-tizen/engine.git',
"deps_file" : 'DEPS',
"managed" : False,
"custom_deps" : {
},
"custom_vars": {},
},
]
EOF
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't use use a gclient config command like this:

gclient config --name="src/flutter" --deps-file="DEPS" --unmanaged https://github.com/flutter-tizen/engine.git

Copy link
Author

@WonyoungChoi WonyoungChoi Aug 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gclient config is also ok. but gclient config seems to do other things that we don't need. sometimes it takes more than 10 seconds.

on:
push:
branches:
- 'flutter-*'
Copy link
Member

@swift-kim swift-kim Aug 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: When I create a new branch (say) flutter-2.4.0-tizen with these files included, will the corresponding Docker image be generated automatically? Is there anything I need to know?

Copy link
Author

@WonyoungChoi WonyoungChoi Aug 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the image will be generated and pushed automatically when you push any changes of ci/docker/tizen/** to flutter-* branches. But currently it will have same tag latest. I think it is better to push with multiple tags latest and the branch name flutter-2.4.0-tizen if the container registry allows the quota.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Engine 버전을 업데이트하는 동안에는 보통 서로 다른 두 DEPS가 동시에 사용이 됩니다. 예를 들어 제가 flutter-2.4.0-tizen에 첫 commit과 PR을 쓰더라도 기존의 PR들은 flutter-2.2.1-tizen을 타게팅하고 있기 때문에 2.4.0의 DEPS를 사용한 빌드와 2.2.1의 DEPS를 사용한 빌드가 자주 번갈아서 일어나게 됩니다. 빌드 전에 gclient sync를 항상 돌리기 때문에 큰 문제가 없을 수는 있지만 의도한 동작이 맞는지는 확인해보시기 바랍니다.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 Docker 이미지에서 gclient sync를 하는 이유는 engine 빌드시 gclient sync 시간이 상대적으로 오래걸리는 dart, skia 관련 repository의 .git directory를 이미지내에 미리 cache하기 위함입니다. 말씀하신 상황에서는 cache된 .git 디렉토리에서 commit hash를 찾지 못해 (shallow clone이므로) gclient sync가 조금 더 오래 걸리는 상황이 있긴 하겠지만, 큰 문제가 되지는 않을 것 같습니다.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use Korean now? 👀
BTW, What's wrong with your tone? Who use translator? 😄

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bwikbs I rarely use Korean for some comments that I can't express in English quickly, only if the topic is not important for other reviewers.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I see. Now talk about translator part 😄

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's wrong with my tone 😢

I try to use correct spelling and grammar to help Google translator translate my Korean comments.

@swift-kim swift-kim mentioned this pull request Sep 1, 2021
10 tasks
New docker image named "build-engine" contains the following:
- Additional ubuntu packages : git curl ca-certificates python xz-utils pkg-config libncurses5 libfreetype6-dev
- depot_tools
- some .git cached directories to reduce gclient sync time. (dart/**/.git, skia/.git)
@WonyoungChoi WonyoungChoi added no merge This PR is not ready for merge yet and removed no merge This PR is not ready for merge yet labels Sep 3, 2021
@WonyoungChoi WonyoungChoi merged commit 23a1ccd into flutter-tizen:flutter-2.2.1-tizen Sep 3, 2021
swift-kim pushed a commit that referenced this pull request Sep 27, 2021
* Make an image for the environment to build engine source

New docker image named "build-engine" contains the following:
- Additional ubuntu packages : git curl ca-certificates python xz-utils pkg-config libncurses5 libfreetype6-dev
- depot_tools
- some .git cached directories to reduce gclient sync time. (dart/**/.git, skia/.git)

* Remove hard-coded branch name in build-docker.sh

* Add DEPS to path filter of the build-docker workflow.

* Remove redundant lines of .gclient
swift-kim pushed a commit that referenced this pull request Nov 14, 2021
* Make an image for the environment to build engine source

New docker image named "build-engine" contains the following:
- Additional ubuntu packages : git curl ca-certificates python xz-utils pkg-config libncurses5 libfreetype6-dev
- depot_tools
- some .git cached directories to reduce gclient sync time. (dart/**/.git, skia/.git)

* Remove hard-coded branch name in build-docker.sh

* Add DEPS to path filter of the build-docker workflow.

* Remove redundant lines of .gclient
swift-kim pushed a commit that referenced this pull request Dec 9, 2021
* Make an image for the environment to build engine source

New docker image named "build-engine" contains the following:
- Additional ubuntu packages : git curl ca-certificates python xz-utils pkg-config libncurses5 libfreetype6-dev
- depot_tools
- some .git cached directories to reduce gclient sync time. (dart/**/.git, skia/.git)

* Remove hard-coded branch name in build-docker.sh

* Add DEPS to path filter of the build-docker workflow.

* Remove redundant lines of .gclient
swift-kim pushed a commit that referenced this pull request Dec 17, 2021
* Make an image for the environment to build engine source

New docker image named "build-engine" contains the following:
- Additional ubuntu packages : git curl ca-certificates python xz-utils pkg-config libncurses5 libfreetype6-dev
- depot_tools
- some .git cached directories to reduce gclient sync time. (dart/**/.git, skia/.git)

* Remove hard-coded branch name in build-docker.sh

* Add DEPS to path filter of the build-docker workflow.

* Remove redundant lines of .gclient
swift-kim pushed a commit that referenced this pull request Feb 7, 2022
* Make an image for the environment to build engine source

New docker image named "build-engine" contains the following:
- Additional ubuntu packages : git curl ca-certificates python xz-utils pkg-config libncurses5 libfreetype6-dev
- depot_tools
- some .git cached directories to reduce gclient sync time. (dart/**/.git, skia/.git)

* Remove hard-coded branch name in build-docker.sh

* Add DEPS to path filter of the build-docker workflow.

* Remove redundant lines of .gclient
swift-kim pushed a commit that referenced this pull request Feb 11, 2022
* Make an image for the environment to build engine source

New docker image named "build-engine" contains the following:
- Additional ubuntu packages : git curl ca-certificates python xz-utils pkg-config libncurses5 libfreetype6-dev
- depot_tools
- some .git cached directories to reduce gclient sync time. (dart/**/.git, skia/.git)

* Remove hard-coded branch name in build-docker.sh

* Add DEPS to path filter of the build-docker workflow.

* Remove redundant lines of .gclient
swift-kim pushed a commit that referenced this pull request May 12, 2022
* Make an image for the environment to build engine source

New docker image named "build-engine" contains the following:
- Additional ubuntu packages : git curl ca-certificates python xz-utils pkg-config libncurses5 libfreetype6-dev
- depot_tools
- some .git cached directories to reduce gclient sync time. (dart/**/.git, skia/.git)

* Remove hard-coded branch name in build-docker.sh

* Add DEPS to path filter of the build-docker workflow.

* Remove redundant lines of .gclient
swift-kim pushed a commit that referenced this pull request Aug 5, 2022
* Make an image for the environment to build engine source

New docker image named "build-engine" contains the following:
- Additional ubuntu packages : git curl ca-certificates python xz-utils pkg-config libncurses5 libfreetype6-dev
- depot_tools
- some .git cached directories to reduce gclient sync time. (dart/**/.git, skia/.git)

* Remove hard-coded branch name in build-docker.sh

* Add DEPS to path filter of the build-docker workflow.

* Remove redundant lines of .gclient
swift-kim pushed a commit that referenced this pull request Sep 1, 2022
* Make an image for the environment to build engine source

New docker image named "build-engine" contains the following:
- Additional ubuntu packages : git curl ca-certificates python xz-utils pkg-config libncurses5 libfreetype6-dev
- depot_tools
- some .git cached directories to reduce gclient sync time. (dart/**/.git, skia/.git)

* Remove hard-coded branch name in build-docker.sh

* Add DEPS to path filter of the build-docker workflow.

* Remove redundant lines of .gclient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants