Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump upstream #12

Open
wants to merge 32 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0e1080c
add Bazel 5 to CI (#92)
kzadorozhny Apr 22, 2022
e87ee02
Update builder image (#93)
apesternikov Apr 22, 2022
1213856
fasterci on PR (#95)
apesternikov Apr 29, 2022
40e5c22
Add Skydio to the list of adopters
kzadorozhny May 7, 2022
1d2699c
symlink to config (#98)
apesternikov Oct 17, 2022
12e120d
Update k8s_test_namespace.sh.tpl (#100)
apesternikov Oct 17, 2022
3ae470f
gcp oauth in sidecar (#101)
apesternikov Oct 17, 2022
e88698e
upgrade bazel deps (#102)
apesternikov Oct 18, 2022
a31a864
Update setup instructions (#103)
apesternikov Oct 18, 2022
c6ada46
renaming master branch
kzadorozhny Oct 19, 2022
558a285
release pipeline (#104)
kzadorozhny Oct 19, 2022
c77830d
(13:15:04) DEBUG: Rule 'k8s_test' indicated that a canonical reproduc…
apesternikov Oct 19, 2022
0b38d2c
Update config.yaml (#106)
apesternikov Nov 11, 2022
fc30ed0
parametrize dependency search (#107)
apesternikov Nov 12, 2022
45bc912
k8s_deploy api for images already in registry (#108)
apesternikov Nov 22, 2022
49463fc
Update workspace_snippet.sh (#110)
apesternikov Nov 28, 2022
d8ff01e
add missing name suffix configuration (#111)
kzadorozhny Nov 30, 2022
10a68ca
fix dep list query string construction (#112)
kzadorozhny Dec 2, 2022
b9bc6ea
rules_go v0.37.0 (#114)
kzadorozhny Dec 7, 2022
99b00ba
--dry_run flag (#115)
apesternikov Dec 14, 2022
7d1343f
secrets example (#118)
apesternikov Dec 21, 2022
2d441ee
use bash runfiles library to find location of the kustomize binary (#…
apesternikov Feb 23, 2023
e7aa7a9
ap/update deps (#125)
apesternikov Feb 23, 2023
80944aa
fasterci in adopters (#126)
apesternikov Feb 23, 2023
53623d5
handle runfiles (#127)
apesternikov Feb 28, 2023
e9895e2
Fix cluster override in k8s_test_setup (#129)
harjsing7 Mar 15, 2023
7a30fa3
Handle case where returned object from a Watch is not a Pod (#132)
harjsing7 Apr 17, 2023
a89dbdb
Allow to set pull request body when defined (#137)
eko Jul 5, 2023
c6f1ad2
dont skip filtering on static namespace tests (#143)
michaelschiff Aug 4, 2023
b17c82d
resolver: Don't crash on nil objs (#142)
DolceTriade Aug 28, 2023
c1a1b25
correct handling of deps runtimes (#109)
apesternikov Nov 28, 2022
eeeb8b1
Pull in changes from upstream
arturo-skydio Oct 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
build --nolegacy_external_runfiles
build --verbose_failures
test --test_output=errors

# required for rules_docker 0.15
common --incompatible_restrict_string_escapes=false
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.0.0
6.0.0
23 changes: 9 additions & 14 deletions .fasterci/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@
workflows:

- &build_workflow
name: Faster CI / build (4.0.0)
image: us.gcr.io/fasterci/bazelbuilder:cd990e6
name: Faster CI / build (6.0.0)
env:
USE_BAZEL_VERSION: "6.0.0"
image: us.gcr.io/fasterci/bazelbuilder:5e59f651dbb5
on:
push:
branches:
- main
pull_request:
branches:
- "**"
steps:
Expand All @@ -27,16 +32,6 @@ workflows:
run: bazel run //:buildifier-check

- <<: *build_workflow
name: Faster CI / build (3.7.1)
env:
USE_BAZEL_VERSION: "3.7.1"

- <<: *build_workflow
name: Faster CI / build (4.2.1)
env:
USE_BAZEL_VERSION: "4.2.1"

- <<: *build_workflow
name: Faster CI / build (5.0.0)
name: Faster CI / build (5.3.1)
env:
USE_BAZEL_VERSION: "5.0.0"
USE_BAZEL_VERSION: "5.3.1"
17 changes: 9 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,26 @@ name: CI
on:
push:
branches:
- master
- main
- feature/*
pull_request:
branches: [master]
branches: [main]

jobs:
build:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
strategy:
matrix:
bazel-version:
- 3.7.1
- 4.0.0
- 6.0.0
- 5.3.1
env:
USE_BAZEL_VERSION: ${{ matrix.bazel-version }}
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3
- name: Mount Bazel cache
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.cache/bazel
key: bazel-${{ matrix.bazel-version }}-${{ github.sha }}
Expand All @@ -32,7 +33,7 @@ jobs:
run: |
TOOLS_DIR="${HOME}/.cache/tools"
mkdir -p "${TOOLS_DIR}/bin/"
curl -Ls -o "${TOOLS_DIR}/bin/bazel" "https://github.com/bazelbuild/bazelisk/releases/download/v1.3.0/bazelisk-linux-amd64"
curl -Ls -o "${TOOLS_DIR}/bin/bazel" "https://github.com/bazelbuild/bazelisk/releases/download/v1.14.0/bazelisk-linux-amd64"
chmod +x "${TOOLS_DIR}/bin/bazel"
curl -Ls -o "${TOOLS_DIR}/bin/buildifier" "https://github.com/bazelbuild/buildtools/releases/download/0.29.0/buildifier"
chmod +x "${TOOLS_DIR}/bin/buildifier"
Expand Down
87 changes: 87 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Cut a release whenever a new tag is pushed to the repo.
# You should use an annotated tag, like `git tag -a v1.2.3`
# and put the release notes into the commit message for the tag.
name: Release

on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-20.04
env:
USE_BAZEL_VERSION: 5.3.1
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Mount Bazel cache
uses: actions/cache@v3
with:
path: ~/.cache/bazel
key: bazel-${{ env.USE_BAZEL_VERSION }}-${{ github.sha }}
restore-keys: |
bazel-${{ env.USE_BAZEL_VERSION }}-
bazel-
- name: Setup build tools
run: |
TOOLS_DIR="${HOME}/.cache/tools"
mkdir -p "${TOOLS_DIR}/bin/"
curl -Ls -o "${TOOLS_DIR}/bin/bazel" "https://github.com/bazelbuild/bazelisk/releases/download/v1.14.0/bazelisk-linux-amd64"
chmod +x "${TOOLS_DIR}/bin/bazel"
curl -Ls -o "${TOOLS_DIR}/bin/buildifier" "https://github.com/bazelbuild/buildtools/releases/download/0.29.0/buildifier"
chmod +x "${TOOLS_DIR}/bin/buildifier"
curl -Ls -o "${TOOLS_DIR}/bin/kind" "https://github.com/kubernetes-sigs/kind/releases/download/v0.11.1/kind-linux-amd64"
chmod +x "${TOOLS_DIR}/bin/kind"
echo "${TOOLS_DIR}/bin" >> $GITHUB_PATH
- name: Setup kind cluster
run: |
./create_kind_cluster.sh
- name: Build
run: |
bazel build //...
- name: Check
# run downloaded version of buildifier to reduce uncached build times
# see: bazel run //:buildifier-check
run: |
find . -type f \(\
-name '*.bzl' \
-o -name '*.sky' \
-o -name BUILD \
-o -name BUILD.bazel \
-o -name WORKSPACE \
-o -name WORKSPACE.bazel \
\) | xargs buildifier \
-mode=check \
-lint=warn \
--warnings=-module-docstring,-function-docstring,-function-docstring-header,-function-docstring-args,-function-docstring-return,-print \
|| {
buildifier_exit_code=$?
echo "Error: failed buildifier checks. Please run \"bazel run //:buildifier-fix\" and commit the changes."
exit $buildifier_exit_code
}
- name: Test
run: |
bazel test //...
- name: Build examples
run: |
cd examples
bazel build //...
- name: Test examples
run: |
cd examples
bazel test //...
- name: E2E
run: |
cd examples
./e2e-test.sh
- name: Prepare workspace snippet
run: .github/workflows/workspace_snippet.sh ${{ env.GITHUB_REF_NAME }} > release_notes.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: true
# Use GH feature to populate the changelog automatically
generate_release_notes: true
body_path: release_notes.txt
26 changes: 26 additions & 0 deletions .github/workflows/workspace_snippet.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/env bash

set -o errexit -o nounset -o pipefail

TAG=${GITHUB_REF_NAME}
PREFIX="rules_gitops-${TAG:1}"
SHA=$(git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip | shasum -a 256 | awk '{print $1}')

cat << EOF

WORKSPACE snippet:

\`\`\`starlark

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "com_adobe_rules_gitops",
sha256 = "${SHA}",
strip_prefix = "${PREFIX}",
urls = ["https://github.com/adobe/rules_gitops/archive/refs/tags/${TAG}.tar.gz"],
)
EOF

awk '/---SNIP---/{f=1;next}/---END_SNIP---/{f=0}f' examples/WORKSPACE
echo "\`\`\`"
5 changes: 3 additions & 2 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@

# gazelle:build_tags darwin,linux
# gazelle:exclude examples

licenses(["notice"]) # Apache 2.0
# gazelle:proto disable_global

load("@bazel_gazelle//:def.bzl", "gazelle")
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")

licenses(["notice"]) # Apache 2.0

exports_files(["WORKSPACE"])

# gazelle:prefix github.com/adobe/rules_gitops
Expand Down
Loading