Skip to content

Commit 7391687

Browse files
author
Aalyria Technologies, Inc
committed
Import changes.
- cee209db8eecb793da8e83139cc93c447b95b840 - 8b0f15bd5936b6fcb5efb9125601d42d0ff1e193 - 9e7b38f74eeffd7e73c895b86d6e810429c41e88 - e59b015865be761cf6365bc32ee230aa02eaee99 - 0ce3d4cc70e3cf5165bce660cfec65187327a20b - d81ba0205d7b310517b73633854983ab8e7ef943 - a02bfb032cf459800f6921f751368937d6d0c513 - 1fc6e589fc62c442eedbbf88de70764d10b42791 - 2fcf83e45f750b2da998adfe4d5eac764282f3b4 - df73370262f48528b4f13734f9ce0201aeba55ba - 478935702dfd119371c6a1af8c150b2583f9c1b7 - 066a28ab55cc7f269816f98ef874f05e11a46ef1 - e60b991f42d3b577248f3f433f4b7a3ab8c1e58f - ca54eba8d932875a28cb8417a2f592f52d3b09d1 - 351845d2d59a8bd52638a56b2ac3b2c16e90becb - 57b4722b0278a20e9df28c34bfae857d3086a75a - 95d4bf18bda2985e166de5458e723239d802cb6e - 2f5a397e608aed25f12868f91a4db56531197574 - d54fff9efa1a58711d399b83a636a04517cb9a19 - ebee5bdd30b8af649157c3e6ffa0ccde53ac3327 - 051e1d8fee2b2fce2c7d12878894b515bc6031f6 - c7f6afaa87866888e63edc4bcf0fe982f11d6b3c - 8205bddd7d2810e31b11588c6cd492ee5368c8a4 - cdb699001b97c0288fc8a2650295a3af8c9ae4a2 - 86d91dcc62f39de4923478f26b05fdfd06a9b054 - df0789908dbfea8ac005de5fd30b412b4286a34a - 20b94efb98acee2dd6116c836356044c5e4cbb25 - 1a9bf7ee46542bf7a1a01b2235180fe69da00afd - a67cc282fb78dc30ea0301dec9f3c40c526e1653 - f857dfedd70f310d8bc5f83d08d2ab7ac501e22e - fc085bada3ec519c081f0f34396c9b50f10563b7 - 7ad796b87a0a7a7dc17dcbeb9837674f8957dafc - ed2f405738cf7ea3908eb6180cebcaa53380af05 - eedb986882b4c38b33e48acd69b3e4122d46770e - ad60fa974758d0b8b8628d06821af211f100303c - 29efd648e297c6beb1694b54673310fc3b1614c1 - 17e62331e4909f0cbff7dc67c38ba3f91acc9b83 - ba0a2033378f82573976816197c074fafb86da62 - 8c2fa63fda588be982b397d1ba568dff0c055b41 - d6a69cd2b9691402853fc7167d73657a3c40ee10 - d092d49cec053bf55e108f2456b515d1c0855520 - d0e852d685839e25f416718032929c11f46480a1 - a745e97afacf167fb4f393c271b25deff31b0327 - 12f8315f61f63ffd27e80bf39e5406eccdabf4b3 - 82dbba7a3b9221e8b323cc69f4cd50e815cf0bf7 - 67206077f9448c50cca64394e1dbcc6bf7c1bab6 - 98d6a7c3abe1cb4db3b30b2696c66160c554d460 - d29cb8ccb3aa87ec1c83e60dd596099fe7232cc1 - 73bab8048af7b0866b6a19388b5d44355f475512 - 45df75fe091e6943c677e9f35b6abf5e13000eed - dafaeb3d39ed6abfa7b5c9679269936f76a7e9d5 - 4b2dc79109193c1e25b0bc25082296df7e6b8daa - a6de26e5936b3398fa8a0a34ac9c5ca06bf6b800 - 16d13224936beadcb085f792d6dbd31d4b535c11 - c03b1592e3a36c220f26d1a2c537259e29e48ca9 - a1684fc0aea273fcf3aeaab5fe1ed444fa8a98a7 - 2d2e88908cd1911ca29161030dc47078cd8f61f6 - 090224466e5778e6524feb17ad5bc05492410583 - db3e2617fc5cf9a79d7c33d775f74e6bc88ebe0d - 4943214a56eee3aaf4e8744a6f9129f37754bc04 - 6bb220eb014b01a28608a069e9b33d031a38afef - 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 (And 605 more changes) GitOrigin-RevId: cee209db8eecb793da8e83139cc93c447b95b840
0 parents  commit 7391687

File tree

239 files changed

+70198
-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.

239 files changed

+70198
-0
lines changed

.bazelrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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
24+
25+
# Select the default venv for the aspect_rules_py uv hub.
26+
# This must be set globally because venv selection is a Bazel config flag.
27+
common --@python_deps//venv=default

.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', 'uv.lock') }}
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', 'uv.lock') }}
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', 'uv.lock') }}
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 spacetime-maintainers@aalyria.com 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)