6224 Commits

Author SHA1 Message Date
Dongsu Park
ee727b639f .github: generate package versions from input values
We do not need to specify each version from each workflow yaml file.
Make *-apply.patch scripts instead generate `$VERSION_SHORT` from the
input version value.
2020-07-23 18:32:27 +02:00
Dongsu Park
596136827b .github: detect latest cork version during SDK setup
We do not need to specify a cork version from each Github action.
Simply detect the latest version in `setup-flatcar-sdk.sh`, before
downloading cork binary file from Github.

Also remove the env variable for cork version from each Github action.
2020-07-23 18:32:27 +02:00
Dongsu Park
566be32dfd .github: update Kernel version to 5.4 for Alpha
Now that Kernel was updated to 5.4 in flatcar-master-alpha, we need
to update also Kernel versions for Alpha in Github actions.
2020-07-23 18:32:27 +02:00
Dongsu Park
8ae55c6d77 .github: schedule weekly Github actions for containerd
To get containerd in sync with upstream, we need to schedule weekly
Github actions. It runs on Friday every week, only for Alpha and Edge.
Similar to those for Docker, we need to deal with torcx ebuilds as well,
as they contain containerd versions.
2020-07-23 18:32:27 +02:00
Dongsu Park
eba279d24f .github: run weekly once to check for usual packages
We do not need to run once in a day to check for updates from
ordinary packages. Most releases happen once in more than a week.
So schedule the Github actions only once in a week for most packages.
Go on Mon, Rust on Tue, Docker on Wed, Runc on Thu.

Note, we still need to check for Kernel once in a day, as Kernel
releases happen quite often.
2020-07-23 18:32:27 +02:00
Dongsu Park
f6d9de2f68 .github: detect kernel version correctly
`kernel-apply-patch.sh` cannot detect the existing kernel version,
if the version does not have a patchlevel, e.g. `5.6`. So the old
kernel version variable becomes an empty string, and the final pull
request has an empty field after the `from` string.

If the Manifest does not have a `patch-` line, try to read a `linux-`
line again, to detect the correct kernel version.
2020-07-23 18:32:26 +02:00
Dongsu Park
0d4a0194be .github: split out from runc into common.sh
To avoid duplicates, make runc-apply-patch.sh use the helper
functions in `common.sh`.
2020-07-23 18:32:26 +02:00
Dongsu Park
c74c31a835 .github: split out from docker into common.sh
To avoid duplicates, make docker-apply-patch.sh use the helper
functions in `common.sh`.
2020-07-23 18:32:26 +02:00
Dongsu Park
2957eb592f .github: split out from Go into common.sh
To avoid duplicates, make go-apply-patch.sh use the helper functions
in `common.sh`.
2020-07-23 18:32:26 +02:00
Dongsu Park
9575d9251c .github: split out from rust into common.sh
To avoid duplicates, make rust-apply-patch.sh use the helper functions
in `common.sh`.
2020-07-23 18:32:26 +02:00
Dongsu Park
a292bdd1be .github: rename versionOld to VERSION_OLD
To make go-apply-patch.sh work with the new helpers,
we need to remove `versionOld` to `VERSION_OLD`.
2020-07-23 18:32:26 +02:00
Dongsu Park
e45323dc37 .github: split out from kernel into common.sh
To avoid duplicates, we should split out common parts into
separate functions in `common.sh`.
Make kernel-apply-patch.sh use the helper functions.
2020-07-23 18:32:25 +02:00
Dongsu Park
de65e80178 .github: schedule daily Github actions for Rust
Schedule daily Github actions for creating PRs for upstream Rust releases.

The Github workflow will create pull request for `dev-lang/rust` in
`coreos-overlay`. At the same time, it will send a repository dispatch
event to `flatcar-linux/portage-stable`, to update also `virtual/rust`.
We need to send different event types to distinguish alpha from edge.
2020-07-23 18:32:25 +02:00
Dongsu Park
a4b6456806 .github: use correct make.conf when setting up Flatcar SDK
When setting up a Flatcar SDK from scratch, we need to also set up
correct configs in `/etc/portage/make.conf`. For example we need to
set `PORTDIR=/mnt/host/source/src/third_party/portage-stable` instead
of the default Gentoo configs like `PORTDIR=/var/gentoo/repos/gentoo`.

Otherwise `update_metadata` will fail in some cases, because portage
cannot find the correct location of portage-stable.
2020-07-23 18:32:25 +02:00
Dongsu Park
4efb14c2a3 .github: check out correct base branches before applying patches
Before starting to apply patches inside `coreos-overlay`, we need to
check out base branches, also for `scripts` and `portage-stable`.
Otherwise, in case of Beta, Alpha, or Edge, `ebuild` commands could
fail due to mismatch of ebuild files across multiple repos like
`coreos-overlay` and `portage-stable`.
2020-07-23 18:32:25 +02:00
Dongsu Park
4e33e9667c .github: fix metadata generation for Kernel and Go
We need to generate metadata after the main commit was created.
Also run git format-patch for both commits, main and metadata.
2020-07-23 18:32:25 +02:00
Dongsu Park
0f4f393884 .github: update Kernel to 5.6 for Edge
Upgrade the base Kernel version from 5.5 to 5.6 for the Edge channel.
2020-07-23 18:32:25 +02:00
Dongsu Park
8bd2c35747 .github: get metadata included in the generated PRs
We need to get metadata included in the generated pull requests.
2020-07-23 18:32:25 +02:00
Dongsu Park
e10e7e45b7 .github: also update metadata on go-apply-patch 2020-07-23 18:32:24 +02:00
Dongsu Park
7e008ca73c .github: also generate metadata on kernel-apply-patch 2020-07-23 18:32:24 +02:00
Dongsu Park
9936ea8841 .github: schedule daily Github actions for Kernel in beta, stable
Check for upstream Kernel releases once in a day, for Beta and Stable,
just like it has been done for Alpha and Edge.
2020-07-23 18:32:24 +02:00
Dongsu Park
c33e7561c1 .github: fix sed expressions in runc-apply-patch
To be able to sort correctly between official releases and rc releases,
we need to add some sed tweaks when getting the original runc version.
2020-07-23 18:32:24 +02:00
Dongsu Park
40ebacc970 .github: schedule daily Github actions for runc
Schedule daily Github actions for upstream runc releases, just like
Docker.

In this case, we also need to update multiple repos like
`app-emulation/docker`, `app-emulation/containerd`, `app-torcx/docker`, etc.
2020-07-23 18:32:24 +02:00
Dongsu Park
e047f6db2f .github: schedule daily Github actions for Docker
Schedule daily Github actions to get upstream Docker releases,
for Alpha and Edge.

We need to change more files, as Docker version is used by torcx
as well as docker-runc.
2020-07-23 18:32:24 +02:00
Dongsu Park
f9163d93c6 .github: set up coreos profiles after setting up SDK
We need to set up coreos profiles under `/etc/portage/repos.conf`, to be
able to run any package-related actions like `emerge` or `egencache`.

Also change permissions for directories, so portage actions could write
files.
2020-07-23 18:32:23 +02:00
Dongsu Park
1011b5d7a2 .github/workflows: do not clone the whole golang repo
Instead of cloning the whole golang github repo, we should do a
shallow clone, and parse the tags list by running `git ls-remote`.
2020-07-23 18:32:23 +02:00
Dongsu Park
2b9e74e80c .github: git shallow clone instead of full clone for kernel
To reduce running time of git clone, we should avoid a full git clone
of the linux kernel repo. Instead, we shallow clone the repo, and
parse tags list by running `git ls-remote`.
2020-07-23 18:32:23 +02:00
Dongsu Park
f0db41dbb5 .github: schedule daily Github actions for Go
Schedule daily Github actions for creating PRs for upstream Go releases,
just like Kernel.
2020-07-23 18:32:23 +02:00
Dongsu Park
4e9d98cc60 .github: do not fail if the release is already the latest Kernel
If the current Flatcar release is already the latest Kernel, we should
simply exit with 0, without giving a failure status 1. The `exit 1`
would the otherwise result in a failure of the entire Github actions.
2020-07-23 18:32:23 +02:00
Dongsu Park
a5ef692fd1 .github: fix a commit message in Kernel workflows
We should use a prefix `sys-kernel`, without `coreos-sources`.
2020-07-23 18:32:23 +02:00
Dongsu Park
6ac7367f83 schedule daily Github actions for Kernel
This commit add 2 different Github actions that run once in a day,
one for Alpha, Kernel 4.19, and the other for Edge, Kernel 5.5.

Because of limitations of Github Actions, i.e. create-pull-request
actions, we cannot combine the two actions into one.
Also we need to create a patch and apply it to the top source directory,
since the create-pull-request action requires the changes in the top
directory.

Although we are not updating flatcar-master branch, (only Alpha and
Edge) the Github actions files need to be merged to flatcar-master,
because Github actions can only schedule cron jobs from the default
branch, flatcar-master.
2020-07-23 18:32:22 +02:00
Sayan Chowdhury
fd2b02b69f Merge pull request #490 from flatcar-linux/sayan/coreos-init-revision-bump
coreos-base/coreos-init: revision bump
2020-07-22 16:03:33 +05:30
Sayan Chowdhury
36f735f3e3 coreos-base/coreos-init: revision bump
This is to include *.network file changes due to systemd v245 migration

Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
2020-07-22 15:25:49 +05:30
Salvatore Mazzarino
a8b6a0f004 sys-kernel/coreos-modules: enable virtio modules (mmio and vsock) for Firecracke
Signed-off-by: Salvatore Mazzarino <dev@mazzarino.cz>
2020-07-21 17:54:46 +02:00
Kai Lüke
62689b3a51 Merge pull request #481 from flatcar-linux/kai/change-firmware-url
sys-kernel/coreos-firmware: Change source URL to reliable mirror
2020-07-21 13:23:56 +02:00
Kai Lüke
9fcf4424d4 sys-kernel/coreos-firmware: Change source URL to reliable mirror
The caching git web view which was used as source location is not
reliable because the cache can be corrupt, the gzip compression of the
snapshot can change, and the cache is produced by the web server which
is not there to give high security guarantees. We experienced cache
corruption.
Switch to the recommended mirror under
https://mirrors.edge.kernel.org/pub/linux/kernel/firmware/
which also hosts signatures and not having the downsides mentioned
above. This is a downstream change until upstream Gentoo changes the
location.
2020-07-21 12:06:20 +02:00
Dongsu Park
b16c859b93 Merge pull request #431 from flatcar-linux/dongsu/glibc-2.30-alpha
sys-libs/glibc: update glibc to 2.30-r8 for alpha
2020-07-21 11:33:53 +02:00
Sayan Chowdhury
d748a91dc7 Merge pull request #448 from flatcar-linux/sayan/upgrade-systemd-to-v245
sys-apps/systemd: Update systemd to v245
2020-07-21 15:01:55 +05:30
Sayan Chowdhury
9d5ba18810 sys-kernel/bootengine: Bump revision
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
2020-07-21 13:53:35 +05:30
Dongsu Park
976af87252 Merge pull request #479 from flatcar-linux/go-1.13.14-alpha
Upgrade Go in Alpha from 1.13.12 to 1.13.14
2020-07-20 17:40:01 +02:00
Sayan Chowdhury
5a6fa682da chore(metadata): Regenerate cache 2020-07-20 17:25:12 +05:30
Sayan Chowdhury
643bcaccec Update the CROS_WORKON_COMMIT for bootengine, and coreos-init
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
2020-07-20 17:25:09 +05:30
Krzesimir Nowak
9d4262d28c Followup backports from upstream
At the same time, try to document all the Flatcar specific changes.

Co-authored-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-07-20 16:45:38 +05:30
Sayan Chowdhury
aa53e2ed3a sys-apps/systemd: Update systemd to v245
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
2020-07-20 16:43:49 +05:30
Flatcar Buildbot
e44416b45d chore(metadata): Regenerate cache 2020-07-20 07:22:00 +00:00
Flatcar Buildbot
1ba7257bce dev-lang: Upgrade Go 1.13.12 to 1.13.14 2020-07-20 07:22:00 +00:00
Flatcar Buildbot
aafbe0ff49 chore(metadata): Regenerate cache 2020-07-16 07:07:09 +00:00
Flatcar Buildbot
d84648559d sys-kernel: Upgrade coreos-kernel 5.4.51 to 5.4.52 2020-07-16 07:07:09 +00:00
Kai Lüke
54ab97589b dev-lang/rust: Apply Flatcar patch
- Added crossdev patch
- Removed Python 3.8 support which we don't have yet
2020-07-15 18:10:00 +02:00
Kai Lüke
34c2cdcc8e dev-lang/rust: Sync Gentoo ebuild file 2020-07-15 18:10:00 +02:00