Skip to content

Commit aa8bb76

Browse files
author
Aalyria Technologies, Inc
committed
Import changes.
- 814a3a2d9489e74451299270bea467c6b8af7af4 - 0139de21844066829294ada19184764bc86a02f7 - c56adbc5ef133d954c344cb754dbb8602237be4c - 911cd686690b6db24c777db2da1ed0a073089f75 - 73b6656ab9f9099dabc1f7f07df6db99b8c84e9b - 1da8f7196d24e44a50d6ca123d053cfd95fe66ff - fb9332a159a13d48585e1d5a669e3b0db49f9353 - 2ad380662e045b70ce7904437ff4817a10533dc8 - 28015e230b03a4ba42249c483e3bfc267bd3b29d - 4caaba796c50798d1fff1ddcc4946483c9c1e4b9 - de13973f7c0bdbbab5567cb982d11ca4c7875eef - e52781b528e9cb5970541737ae8ab57ff02f8ff6 - 6ba066f98322c73bfca35629ca854145e0219cd9 - d126c76183254f3831a8781e92309f51eeebbb06 - d0094a96aa254e6adb0a1690fe49cf301ac76597 - 4e37dd7d22eebed9fbbfe1170c28196f62194415 - e0bd61c55ada84732a200bb2bcd8f8330fbd4b8f - be6893839560641fe5a328e9e12580d52be57c74 - dc49a5c0954e3df43660fd61541fce112d20d979 - db3a2538987e191cf73b86d72b994adefd94cc80 - af847b94652d7e789f4a361b41fc1bdff1c579f2 - 5d4aeb9225a22d8efe70ba0abf63766ca6b543bd - 673fa2092557af54adbf34a902a7ed1e5b0b5888 - 7cb362a04df313cd56de48179962e8299c965ffc - 66b129db89e85b0891db1ab546b17df940ee63aa - b9a1121aef070f3f29c1c4c531475019a00f3733 - 1af3f82c14e6ca6e6480c2bbe95b175df39d44b6 - 6520c5045e41b90be5a83e921213215fe3590a5f - 023535cd6ac1b0c928796244161db17da77f89de - 92b7907660ea71bf15c37c59cc583ad93b7cda45 - 142fbf7bd2891400334cfcfcd2d59dd84fddc7b4 - 58d1fcc52efe0711e5df40404196e04c94cc5ada - 952885166c23413adf60769105bdbe2e9ac66c69 - 46c63458d53870b63c9b6130a9e6266740b0ac1d - 136929c55fa8c79d88f8fce60957a4c631b01bf4 - 364a74e286345066206ce692f5547611c4f36b46 - ed63bf4530e1b0fe8135e670e0d8ebee9f64be16 - 437f4167a4d9a3c6976d614a6ce3b859abd9abae - cc555d518d7e40c0f99117f7a8c5ac2a36ad79bd - 873144921cc26a35664990ce1b84f7f4075c0b0a - 4ad85a5b578a2e886e6ceefaf84cf9d0ac05fb8b - 26b16821e80780f42bf7b23e951bdde8e44e7872 - 12d2d369c120f8dccfbea69cfc0b229d5b455d6e - b9739789d0102977f3d9477cec535e5ad5ea5eae - 20a750b0689325f349f15acc9f0e70623736cc17 - 807b89bcdbc729ed50e88601a74bd46442b8138e - 2f04c6adc5750fc1226f2d4df8e10c1e0d7971a1 - 9e76ec46fde602a6f1370c3c290193221db06b1b - 1e0720534316082dbab7477e3230a378c519d151 - 677895b8c71daa710cd8f85cd60b72cbc5303ce2 - c0d9709b5665b437d822b148e6231c8ccf2eb947 - 3e9190e03dbbb42648248d2373adf90874baef1a - 5d16f1083d5418b2d304140d5683981c4199d4f7 - e43abc0859127cd751bf24bb7e310aaa5a97d35d - d03c038366b786445167a8bff7d681bb33fe299f - ec2e9c14858f21b76afe21a89a43613414b21740 - 3dff9ff7b68f040c8fadc08833b8c552c70b237a - dc22acdc0a5b02c4abfb2dbaeb220309449bcb55 - 69ef435a4a697b370e1febfb99973ebd2679d194 - 8983fe27e2c28f3ec162c8bc5e8bf6dae7ad36f6 - 8eca1fda1ef7d5cd779b1dbf2a7bd44e76505e40 - 3a3e68788ce1f854adc805de12fa2da31a36336d - 583333dc3b9d112a28e02fd98b289129cd0adc49 - 23bfd258643b2e797592d5de449c035eb25a548b - d59eaf60d0a6b0b9f99646e0fddb40327f155dc6 - 3df2baa5b555c8cfbf153108da64480036f20d99 - 635e00f025322b929ac378e2be8888c61f10f7ba - fbae1d6beadeb3b552bf6ac9a283aaff1e95a319 - f4e5a82d315eab2300e18c3cf1a1392148abc1cb - 9c0f23808d8dce74f0ed086c0907a2c930d65298 - 364b2a72c96ccd781f34f7f09f5ce9a0df50fa25 - 39bf1e177ca5eff6b2705eeb334438e239063569 - 83fce14bdefe1636972c1becade550dcb60f928c - bd84932d0523939346a3ff309421da1679c76125 - 9c2470fbd682ab8d60b432d999948c6f3a6e66f8 - 3241ef40729d0c59203c7612d86829c985a6d64c - eecd76470c460818210efb6d2c5a5217113b41bc - 5adb5450f502603677f67e4e461435c99568795a - 414441dfb99cc4f6ca1479f70922bc65f9cd8c01 - 6bc0da39105e50672f079ba5c5d785cb9d815886 - 7b4df20bae41138ed628d37cb5f3c5796f08142f - 1905c52b49ce97503e8a348b4f5114155b1c4a3d - f23ccdb1e0d46565657f5027d14415623c20618a - 57b0ed291a6a7092bffe404bd23e4157ff16286a - f15f1f35adaef430ff1ba66ca7ff3c443e8ca675 - 5bcb94da4dab7465dd3d58c78d3cb249343cf88f - 5f46a1642ecff1b1b143db0eab73d449bde69eb8 - e927395791a6defaec7c5f2e57d3a91a9e40c074 - 591ee5c16ab8b6e36fbbc3874f71ccd410986f77 - 9e4e4411c7831916b86ce8e3d9e74516a8ddf188 - 3ed0529b189e8ebe2d8cacdccdf6912115d81106 - e6d5514283e4aa88946e1eb2857b733f2a39022c - b44776955397727d09911e75fa54e2c540f58552 - b91aa9dd2e1d51c74702e992882386342f571018 - 218a683ab8ab153702d1327d129e34bb673ced19 - ecc91c55dfff81cd8374be6ee0a19cd711fb4583 - 3d87332e557378c258f09496bf02227240a0ebf3 - ad933e516e8d1c075751b9fba20457c5666f3665 - e5f4398dbf2465c13ed75fff1a8785c6f0a892be - 7be373e65335aa465ab3d43149d9c9df007ddced (And 554 more changes) GitOrigin-RevId: 814a3a2d9489e74451299270bea467c6b8af7af4
0 parents  commit aa8bb76

File tree

242 files changed

+69171
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

242 files changed

+69171
-0
lines changed

.bazelrc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2023 Aalyria Technologies, Inc., and its affiliates.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
import %workspace%/common.bazelrc
16+
17+
# Attempt to load an optional cache.bazelrc file that defines a remote cache
18+
# endpoint.
19+
try-import %workspace%/cache.bazelrc
20+
21+
# Enable bzlmod, which is the new system of managing external dependencies
22+
# using a MODULE.bazel file instead of the legacy WORKSPACE system.
23+
common --enable_bzlmod

.bazelversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.7.0

.github/workflows/main.yml

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
# Copyright 2023 Aalyria Technologies, Inc., and its affiliates.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Bazel
16+
17+
on:
18+
pull_request: {}
19+
push: {}
20+
release:
21+
types: [published]
22+
workflow_dispatch:
23+
inputs:
24+
create_release:
25+
description: "Create GitHub release"
26+
type: boolean
27+
default: false
28+
ref:
29+
description: "Release version ref"
30+
required: false
31+
type: string
32+
33+
jobs:
34+
build-and-test:
35+
runs-on: ubuntu-22.04
36+
steps:
37+
- uses: actions/checkout@v4
38+
with:
39+
ref: ${{ github.event.inputs.ref || github.ref }}
40+
- uses: actions/cache@v4
41+
with:
42+
path: |
43+
~/.cache/bazelisk
44+
~/.cache/bazel
45+
key: bazel-${{ hashFiles('common.bazelrc', '.bazelrc', '.bazelversion', 'WORKSPACE', 'MODULE.bazel', 'requirements.txt') }}
46+
restore-keys: bazel-
47+
- run: bazelisk test //...
48+
49+
build-and-upload-tools:
50+
needs: [build-and-test]
51+
strategy:
52+
matrix:
53+
os: [linux, windows, darwin]
54+
arch: [amd64, arm64]
55+
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v4
59+
with:
60+
ref: ${{ github.event.inputs.ref || github.ref }}
61+
- uses: actions/cache@v4
62+
with:
63+
path: |
64+
~/.cache/bazelisk
65+
~/.cache/bazel
66+
key: bazel-${{ hashFiles('common.bazelrc', '.bazelrc', '.bazelversion', 'WORKSPACE', 'MODULE.bazel', 'requirements.txt') }}
67+
restore-keys: bazel-
68+
- run: bazel/tools/update_version_bzl.sh version.bzl
69+
70+
- name: Build artifacts
71+
if: ${{ matrix.os != 'windows' }}
72+
run: |
73+
bazelisk build --stamp "--platforms=@rules_go//go/toolchain:${{ matrix.os }}_${{ matrix.arch }}" //tools/nbictl/cmd/nbictl
74+
zip -j nbictl-${{ matrix.os }}-${{ matrix.arch }}.zip bazel-bin/tools/nbictl/cmd/nbictl/nbictl_/nbictl
75+
bazelisk build --stamp "--platforms=@rules_go//go/toolchain:${{ matrix.os }}_${{ matrix.arch }}" //agent/cmd/agent
76+
zip -j agent-${{ matrix.os }}-${{ matrix.arch }}.zip bazel-bin/agent/cmd/agent/agent_/agent
77+
78+
- name: Build artifacts - Windows
79+
if: ${{ matrix.os == 'windows' }}
80+
run: |
81+
bazelisk build --stamp "--platforms=@rules_go//go/toolchain:${{ matrix.os }}_${{ matrix.arch }}" //tools/nbictl/cmd/nbictl
82+
zip -j nbictl-${{ matrix.os }}-${{ matrix.arch }}.zip bazel-bin/tools/nbictl/cmd/nbictl/nbictl_/nbictl.exe
83+
bazelisk build --stamp "--platforms=@rules_go//go/toolchain:${{ matrix.os }}_${{ matrix.arch }}" //agent/cmd/agent
84+
zip -j agent-${{ matrix.os }}-${{ matrix.arch }}.zip bazel-bin/agent/cmd/agent/agent_/agent.exe
85+
86+
- name: Upload binary
87+
uses: actions/upload-artifact@v4
88+
with:
89+
name: tools-${{ matrix.os }}-${{ matrix.arch }}
90+
path: "*.zip"
91+
92+
build-and-upload-docs:
93+
needs: [build-and-test]
94+
runs-on: ubuntu-latest
95+
steps:
96+
- uses: actions/checkout@v4
97+
with:
98+
ref: ${{ github.event.inputs.ref || github.ref }}
99+
- uses: actions/cache@v4
100+
with:
101+
path: |
102+
~/.cache/bazelisk
103+
~/.cache/bazel
104+
key: bazel-${{ hashFiles('common.bazelrc', '.bazelrc', '.bazelversion', 'WORKSPACE', 'MODULE.bazel', 'requirements.txt') }}
105+
restore-keys: bazel-
106+
- run: bazelisk build "//api:api.html"
107+
- name: Upload API docs
108+
uses: actions/upload-artifact@v4
109+
with:
110+
name: api.html
111+
path: |
112+
bazel-bin/api/api.html/api.html
113+
114+
create-release:
115+
needs: [build-and-upload-tools]
116+
runs-on: ubuntu-latest
117+
if: |
118+
startsWith( github.ref, 'refs/heads/release-' ) ||
119+
(github.event_name == 'workflow_dispatch' && inputs.create_release == true && inputs.ref != '')
120+
steps:
121+
- uses: actions/checkout@v4
122+
with:
123+
ref: ${{ github.event.inputs.ref || github.ref }}
124+
- name: Download all artifacts
125+
uses: actions/download-artifact@v4
126+
with:
127+
pattern: tools-*
128+
129+
- run: bazel/tools/update_version_bzl.sh version.bzl
130+
- name: Read version
131+
id: version
132+
run: echo "value=$(bazelisk run //:version)" >> $GITHUB_OUTPUT
133+
- name: Create Release
134+
uses: softprops/action-gh-release@v2
135+
with:
136+
tag_name: v${{ steps.version.outputs.value }}
137+
name: Release v${{ steps.version.outputs.value }}
138+
target_commitish: ${{ github.event.inputs.ref || github.ref }}
139+
make_latest: legacy # determined based on the release creation date and higher semantic version
140+
draft: false
141+
files: |
142+
tools-*/*.zip
143+
generate_release_notes: true

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2023 Aalyria Technologies, Inc., and its affiliates.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
bazel-*
16+
cache.bazelrc

BUILD

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2023 Aalyria Technologies, Inc., and its affiliates.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
load("@gazelle//:def.bzl", "gazelle", "gazelle_test")
15+
load("//:version.bzl", "VERSION")
16+
17+
gazelle(name = "gazelle")
18+
19+
gazelle_test(
20+
name = "gazelle_test",
21+
tags = ["manual"],
22+
workspace = "//:BUILD",
23+
)
24+
25+
genrule(
26+
name = "version",
27+
outs = ["print_version.sh"],
28+
cmd = "echo '#!/bin/bash\necho " + VERSION + "' > $@",
29+
executable = True,
30+
)

GOVERNANCE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Governance
2+
3+
Spacetime’s APIs are under active development by the internal developer team. Contributions from the wider developer community will be considered according to the guidelines in this document.
4+
5+
## Contributing
6+
To propose a change to the APIs, please first email the Maintainers at [email protected] to discuss the change.
7+
8+
Major changes to the API, such as fundamental re-architectures, will require additional discussion and will proceed once the Spacetime Maintainers have aligned.
9+
10+
Minor changes to the API, such as non-breaking changes that do not affect core functionality, should be discussed over email as well, but will proceed without a major design discussion.
11+
12+
## License
13+
All contributions to Spacetime’s APIs will be licensed under its Apache 2.0 license.
14+
15+
## Contributor License Agreement (CLA)
16+
When you open your first PR, you will be prompted to submit a CLA. Follow the prompts to sign and complete it.

0 commit comments

Comments
 (0)