Skip to content

Commit a26cbce

Browse files
author
Aalyria Technologies, Inc
committed
Import changes.
- 2813a937cc2c57c79f1af2a762c8ce0d3aac89b7 - c27cbfd3f4e38d1309d8c0441ffd4ea3c7c7f34b - d7c6821f8a7d4abd155a894a491ce1d1b6012bc8 - e4bae3d31abdfaec23c30637127405502dc06879 - 4332b7bc23a56833a4ef4da29b83528725a66c36 - 2a9b7239c4bb15dc7ffc0325a03243bf9b6b73a9 - c558c692d0b3f655c4cb00912fbec1cbe3139086 - 925a8c9315983faf9ce7415b2968b591f7d69b6b - 2dcac0b0ae0ef1f2fecbbb95bc446648f2297925 - 5686f0dab120615e135d78736eabaad4bbe59d22 - 62ddc2915d055890b9690b823ddfb7414aabf3e1 - 4829a2afa03fbb4474a7a944d04b888930241220 - 8f0d4766efc8e96d2e91c57840b07fbfa704e180 - a794085bdb576a05bb4361c64fd27de2c9d1ed02 - e9266a2f7bca606f2c5c73d4529fa59d7676f927 - e5ee965546e43e963c56fdaf74a94c286a524cc3 - 1a5fec8a198c6c8c6fa07435f99751f61496a78a - bf46fd43dc1c8283e30b3da30ad65b24794234af - 3c3ecdb216ef8da87037a9f035545e07eec31aac - 7b874649a8c6fbc7e0dfce4fd0b630eaf8beb3d8 - 7c9a5f41e2ee71ee1e5538261fd7f2a90a365cf6 - 5612cc1ebcf986b72879686636250dafcada91de - b0bc5b39ca92a0c20690beec8efca41f15603e3c - 77ae04d966215be52fabbc2a1dfdd7696859630a - 3bd7126177bb0da4eabf70c74ebcbaac65658d1c - 061ee7190d340a2ed78582985c411689af7426a5 - ceca3c58dc54200f2d05715d57ee707d674a7bc1 - b5c8a7d58f3ef2e48508892ed4ea4bfca3a009ae - 08eb6ad9be31430f51903654de17907522c76f94 - b549b51fffe400d1b11e29d4db6914c3451a9bd5 - cb927cb550488ef724324de747ba873514773b09 - c77d0cd7f3c3435de83663d8e62049663e102e17 - 853fe60084ce038b7446ab51161aaab4f284ae51 - ab9c987ba84c7d30f75bf2266d97fe720ce0b9f7 - 28c989ca09b57e4673d71e8b189c3d02802c4dfd - b1b54cb711de605f7f924961f2ff0f8e79322340 - d6837cdb75c89799ce0e59ed83420999db935033 - f0a6978aa87b45f7360ad48ffe9288135ea83c49 - 9de8206276b80e9f400ab2fc8fa70ee31ec0fef0 - 71b7f946ed260c412e8b50857fe7d07c1c6fd7e1 - bd7c1bdf462bfd7676a1553228c55164bee471c7 - 776e00001d0c1602a0c165ee59d4630ef7a3b504 - 8ae6a40bf6ddad259b5f87e604bec70fe0c4f1ca - a13de704a7092dae2c6d4eb940682208d965fa76 - 6d99e8dd6797e9a05b0847d995eeee31c67dc0eb - 72aba47772be7245b34c7a4f20ccff8e75ac8bf4 - 8f5509da9d4169a5d531bad633c0e54ec2c082a5 - 387a40f482811ca1be2655538b7bb7f96b5573dd - 669d0d89db34c9d09b0f6d5650554a9578381bb8 - 8a99056140fa462851314c7c8ef24e8985b7a82b - 1589402f334478e743021c7239709e9f0a78174d - 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 (And 662 more changes) GitOrigin-RevId: 2813a937cc2c57c79f1af2a762c8ce0d3aac89b7
0 parents  commit a26cbce

247 files changed

Lines changed: 74315 additions & 0 deletions

File tree

Some content is hidden

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

.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)