Skip to content
Permalink
Browse files

Remove support for Ubuntu 14.04.

Ubuntu 14.04 is end-of-life and Bazel CI will stop supporting it.
Context: https://groups.google.com/d/msg/bazel-dev/_D6XzfNkQQE/8TNKiNmsCAAJ

All projects on Bazel CI have been migrated to Ubuntu 16.04 and 18.04.

We still have to build Bazel on Ubuntu 14.04 for a time, because
Bazelisk currently tries to explicitly download ubuntu1404 binaries on
all Linux platforms.
  • Loading branch information...
philwo committed Jun 6, 2019
1 parent e634304 commit 91db875271616208fee927bcbe4cc14d0be69cc5
@@ -112,7 +112,7 @@ Create "New Build" in the [Culprit Finder](https://buildkite.com/bazel/culprit-f
eg.
```
PROJECT_NAME=rules_go
PLATFORM_NAME=ubuntu1404
PLATFORM_NAME=ubuntu1604
GOOD_BAZEL_COMMIT=b6ea3b6caa7f379778e74da33d1bd0ff6477f963
BAD_BAZEL_COMMIT=91eb3d207714af0ab1e5812252a0f10f40d6e4a8
```
@@ -203,7 +203,7 @@ The `build_flags` and `test_flags` fields contain lists of flags that should be
```yaml
---
tasks:
ubuntu1404:
ubuntu1804:
build_flags:
- "--define=ij_product=clion-latest"
build_targets:
@@ -235,7 +235,7 @@ Most existing configuration use the legacy format with a "platforms" dictionary:
```yaml
---
platforms:
ubuntu1404:
ubuntu1804:
build_targets:
- "..."
test_targets:
@@ -248,7 +248,7 @@ The new format expects a "tasks" dictionary instead:
---
tasks:
arbitrary_id:
platform: ubuntu1404
platform: ubuntu1804
build_targets:
- "..."
test_targets:
@@ -260,7 +260,7 @@ In this case we can omit the `platform` field since there is a 1:1 mapping betwe
```yaml
---
tasks:
ubuntu1404:
ubuntu1804:
build_targets:
- "..."
test_targets:
@@ -283,7 +283,7 @@ tasks:
macos:
build_targets:
- "..."
ubuntu1404:
ubuntu1804:
bazel: 0.18.0
build_targets:
- "..."
@@ -393,15 +393,15 @@
"name": "Ubuntu 16.04, OpenJDK 8",
"emoji-name": ":ubuntu: 16.04 (OpenJDK 8)",
"downstream-root": "/var/lib/buildkite-agent/builds/${BUILDKITE_AGENT_NAME}/${BUILDKITE_ORGANIZATION_SLUG}-downstream-projects",
"publish_binary": False,
"publish_binary": True,
"docker-image": "gcr.io/bazel-public/ubuntu1604:java8",
"python": "python3.6",
},
"ubuntu1804": {
"name": "Ubuntu 18.04, OpenJDK 11",
"emoji-name": ":ubuntu: 18.04 (OpenJDK 11)",
"downstream-root": "/var/lib/buildkite-agent/builds/${BUILDKITE_AGENT_NAME}/${BUILDKITE_ORGANIZATION_SLUG}-downstream-projects",
"publish_binary": False,
"publish_binary": True,
"docker-image": "gcr.io/bazel-public/ubuntu1804:java11",
"python": "python3.6",
},
@@ -972,10 +972,10 @@ def download_bazel_binary(dest_dir, platform):


def download_bazel_binary_at_commit(dest_dir, platform, bazel_git_commit):
# We only build bazel binary on ubuntu14.04 for every bazel commit.
# It should be OK to use it on other ubuntu platforms.
if "ubuntu" in platform:
platform = "ubuntu1404"
# We have a few Ubuntu platforms for which we don't build binaries. It should be OK to use the
# ones from Ubuntu 16.04 on them.
if "ubuntu" in platform and not should_publish_binaries_for_platform(platform):
platform = "ubuntu1604"
bazel_binary_path = os.path.join(dest_dir, "bazel.exe" if platform == "windows" else "bazel")
try:
execute_command(
@@ -1,29 +1,20 @@
---
platforms:
ubuntu1404:
build_flags:
- "--define=ij_product=clion-latest"
build_targets:
- clwb:clwb_bazel
test_flags:
- "--define=ij_product=clion-latest"
test_targets:
- ":clwb_tests"
ubuntu1604:
build_flags:
- "--define=ij_product=clion-latest"
- "--define=ij_product=clion-latest"
build_targets:
- clwb:clwb_bazel
- clwb:clwb_bazel
test_flags:
- "--define=ij_product=clion-latest"
- "--define=ij_product=clion-latest"
test_targets:
- ":clwb_tests"
- ":clwb_tests"
macos:
build_flags:
- "--define=ij_product=clion-latest"
- "--define=ij_product=clion-latest"
build_targets:
- clwb:clwb_bazel
- clwb:clwb_bazel
test_flags:
- "--define=ij_product=clion-latest"
- "--define=ij_product=clion-latest"
test_targets:
- ":clwb_tests"
- ":clwb_tests"
@@ -1,17 +1,12 @@
---
platforms:
ubuntu1404:
build_targets:
- "..."
test_targets:
- "..."
ubuntu1604:
build_targets:
- "..."
- "..."
test_targets:
- "..."
- "..."
macos:
build_targets:
- "..."
- "..."
test_targets:
- "..."
- "..."
@@ -1,17 +1,12 @@
---
platforms:
ubuntu1404:
build_targets:
- "..."
test_targets:
- "..."
ubuntu1604:
build_targets:
- "..."
- "..."
test_targets:
- "..."
- "..."
macos:
build_targets:
- "..."
- "..."
test_targets:
- "..."
- "..."
@@ -1,29 +1,20 @@
---
platforms:
ubuntu1404:
build_flags:
- "--define=ij_product=intellij-latest"
build_targets:
- ijwb:ijwb_bazel
test_flags:
- "--define=ij_product=intellij-latest"
test_targets:
- ":ijwb_tests"
ubuntu1604:
build_flags:
- "--define=ij_product=intellij-latest"
- "--define=ij_product=intellij-latest"
build_targets:
- ijwb:ijwb_bazel
- ijwb:ijwb_bazel
test_flags:
- "--define=ij_product=intellij-latest"
- "--define=ij_product=intellij-latest"
test_targets:
- ":ijwb_tests"
- ":ijwb_tests"
macos:
build_flags:
- "--define=ij_product=intellij-latest"
- "--define=ij_product=intellij-latest"
build_targets:
- ijwb:ijwb_bazel
- ijwb:ijwb_bazel
test_flags:
- "--define=ij_product=intellij-latest"
- "--define=ij_product=intellij-latest"
test_targets:
- ":ijwb_tests"
- ":ijwb_tests"
@@ -1,14 +1,11 @@
---
platforms:
ubuntu1404:
test_targets:
- "//:all"
ubuntu1604:
test_targets:
- "//:all"
- "//:all"
macos:
test_targets:
- "//:all"
- "//:all"
windows:
test_targets:
- "//:all"
- "//:all"
@@ -1,22 +1,17 @@
---
platforms:
ubuntu1404:
build_targets:
- "..."
test_targets:
- "..."
ubuntu1604:
build_targets:
- "..."
- "..."
test_targets:
- "..."
- "..."
macos:
build_targets:
- "..."
- "..."
test_targets:
- "..."
- "..."
windows:
build_targets:
- "..."
- "..."
test_targets:
- "..."
- "..."
@@ -1,12 +1,7 @@
---
platforms:
ubuntu1404:
build_targets:
- "..."
test_targets:
- "..."
ubuntu1604:
build_targets:
- "..."
- "..."
test_targets:
- "..."
- "..."
@@ -32,7 +32,7 @@ steps:
- wait

- label: "Ubuntu 14.04"
- label: "Ubuntu 16.04"
agents:
- "queue=default"
plugins:
@@ -42,7 +42,7 @@ steps:
- ANDROID_HOME
- ANDROID_NDK_HOME
- BUILDKITE_ARTIFACT_UPLOAD_DESTINATION
image: gcr.io/bazel-public/ubuntu1404:java8
image: gcr.io/bazel-public/ubuntu1604:java8
network: host
privileged: true
propagate-environment: true
@@ -151,7 +151,7 @@ steps:
- wait

- label: "Test on Ubuntu 14.04"
- label: "Test on Ubuntu 16.04"
agents:
- "queue=default"
plugins:
@@ -161,7 +161,7 @@ steps:
- ANDROID_HOME
- ANDROID_NDK_HOME
- BUILDKITE_ARTIFACT_UPLOAD_DESTINATION
image: gcr.io/bazel-public/ubuntu1404:java8
image: gcr.io/bazel-public/ubuntu1604:java8
network: host
privileged: true
propagate-environment: true
@@ -12,7 +12,7 @@ steps:
- ANDROID_HOME
- ANDROID_NDK_HOME
- BUILDKITE_ARTIFACT_UPLOAD_DESTINATION
image: gcr.io/bazel-public/ubuntu1404:java8
image: gcr.io/bazel-public/ubuntu1604:java8
network: host
privileged: true
propagate-environment: true

0 comments on commit 91db875

Please sign in to comment.
You can’t perform that action at this time.