Skip to content

Commit b09ead7

Browse files
author
Aalyria Technologies, Inc
committed
Import changes.
- 3d87332e557378c258f09496bf02227240a0ebf3 - ad933e516e8d1c075751b9fba20457c5666f3665 - e5f4398dbf2465c13ed75fff1a8785c6f0a892be - 7be373e65335aa465ab3d43149d9c9df007ddced - 3e5c74944244d7a3e42747889bf60c2d037e095d - 5bbb06371ab6d14b579f2181e7be8b9425d4e809 - c0ad3c5a156aeef56700d0604224b4e08c266bae - e91398acf7fc0c13c484a73810a56aaddf9125e0 - d36216a032cdff338f41522339d964873ef614eb - bfb3239087323cf9692f7dd2603b3e8bfff10987 - 8d82454c545fd4cc6fa10331415d2944271dca26 - a755e596455087907ccc18176c66b551c5e15663 - 6d0f791b64ad8622efe28b88646ae616e87ea7d4 - 40f9f2d6140c85aa40eb6acf9e92967603738d48 - ce1053eb39c6cb45a1e0aa48774b627efe788362 - 3f84d024fbc7e13f6397ec7d09056177169e491d - 2bbcfe67e0424ad2450a2744e1bf32034b53e351 - cbf5402013a25823426342739c405e1808d0f31a - 13e7af992c5f210f3a5ebf020b228752dd6ee356 - 2dad29776bcc6d0ba0750a83aa04cf2497c0e0e3 - dc05a018ab7720586d94c872f73b5f654a508be4 - d76bc3a2cc4bbd3fa7b493a615d8c1384c0ed19d - bd3b62dd058b326a65a5ab602509708630ae888e - d173ce9cd0a3706cb56ca1a2119d4e6c6ef41f7a - db0c0e2cf68b07fa1027f4586f4991084ad67248 - 034898d4f08fb9f962a64ec369ba0008dba929b2 - 9e554dcd269c467611fd216b059b572d93288aa0 - 7e6c879ed67b71092e16574722b24e3b5e48f371 - 0d83340cc749c61570fcae17b2ac346b66b1d921 - 2adea1a475995d4a36f007d10157d17b18ae8366 - dcd93a33f1750f15dadb324b1647a9f61fe37b5b - 1e7fb4df6eab8cc413c2930051fa3e8e492831e7 - d4a7c9f77146d8882b5c04648729dd3177c8c458 - 96d0603b31f5c4850b708923929e0c149577742e - 1a2c39b6375d0b752620693131dbc0f089f21646 - f207482f544132ceceab1c22b3da27c82a8547b2 - b22607889a96074f49f0f4b0ec3b7b817166de6b - 06410ade6867e839f62506bdf3748e7927e29623 - b9e0caab9d847311b27ebe7729c7ad7a9572614d - c6decb1657bfc99abe06f4edd2dc472a489db614 - 3b4557284a4d6bd35f7c79e32c50ded1547fa36b - 164ad4d487f63a030cc5724de3ecc41107599294 - 098bf97ce1157d62f2791f1d36f170cc89b48ed6 - b21d3759cb0058dd5f902e17e3a56cd102f8f42e - 78999435fda78a7bbacd891d952eafc9a7b66418 - 7957b132cdb1658163076c7bec6513a8141a9bcc - ed6ac57ac0235efe1f8778d0b25458910951a09c - 5c40f7c9aec3ec1b362211adf1afed898ad0158a - 630723966bbe744143acb2f9051d27ee215fe6f6 - dd0a85d1d49cd1153dd396d6f397e8dda4c67e44 - 1bd7b3a80b7e240d35d9f14beca114cca5484378 - d3254a08e35ce8b83d896dd189e925c0061b4dd1 - 26281ae6b8c4d1ff0b020bb82816e2d51ac29eca - ab45e3c5785c09b03777651a7dce6558d71711f4 - 6cb09df3d1696b3eace137e2883dd52cad6c4a1c - 744ba7bfcb650a4367bbd75cf97135af2c42beef - d5bb4f9f44391bf4819a359c35281e5b40324c5b - 95da152fdce4dbeb1552de8161afcb9bd817f88a - 7cd74aaefba649a39d049dca66cad14708549bc3 - f9ca20989dd7a5a019d2d7f75aa57fa46c1aa9e3 - c3fd6f21f4c5abc4bd03e890422789191356e618 - 27b971e4c868bcb81a2608585e9689a7a256770e - d5ccced075727910a4c568c2ea5568226dd49cbf - 93af9162fb493db648dc806a5e5aa5604abb8eb8 - ec4d8712c18332f235cff58c0f2d30caa4730ea4 - 53f0c7320181fd3baaf7d4b55c621157191e1ec7 - d7fbdd919bc924cc0884ac743becb531bb56ee21 - 1ebd96c3b6f25ac8db7ead146a826660458be7c1 - 594e382830ccf977de89e7ab46d20c8b83af6668 - 063f1e8f554fd81395022a6a62cfeec0be203213 - 694abe016e388ea6f14e16ee34acc78a9a677e01 - 4a1f7ce35ae7a7b43ede078c9211db3f3303778a - 7d2ee0d7ef8cd3bec6e6c19985aa9f355ff6e977 - c6d2c5b2ac910aa49b510ffe96ad78062bb71614 - d20a19efc5b31056c5d65602ca0cbb97e08113e9 - 38ddfa73b22ed8becc4b09e0606d5ae3fb50fbdd - 41c74cece9d2b0ea7f0613d58db533146f77b3b6 - 48a065bc43f9e74938bab90856dc9f69d6dcfb0b - 80cbda4c3fa9bc348c67dba49d01f87a0ea20761 - f1c157afa3ce3c624fd07b9d680451446bb44cb3 - ce92f4dd862ea582a956aa02e22c57e8ed9926c3 - 5cc76afbbbd6e10c05d90d37925a6f29a012830f - 50d9815c2a27319ca650b682e2d7400db99696dc - 5d4b83fc8931aa7f5ccf7a0b5f6c0818fc92b946 - 0b8cba7adbc435074831d4e0ea9ba7b586e42669 - c3715597122d1e279a99f03d64dcc3408aae3fd3 - 87cd93af0c9431079af444e1561c25818a964fe4 - ee5891387067b5189b3ce339b0d1f67a9b943e2f - 170a8a15842629d0f8fc9f7cfbe3dc211e20df6c - e1c8cc38727df6a9dc72ae0fa0b5a0d424d3400c - 5506548214c9217046bc7122e89e56e9a432141a - a80cebf9691cb49babc6d11b2ce83cf01dafb329 - 3a21f86d88862987e5a9f06ead1909dcea050d8d - f823ea50365bee888314c796103799bb809069b0 - c8f52bef5ebc7d2ca61ed4be24e54173db45e1eb - 19389a71d6d49c313ff8616916dcf36acfe21bf5 - 9a093588b1eabe61437ab0c369b2e73381756c57 - 920fd2bfc413b7249d696745e360f9dc2e5c07d1 - eadf6859ed7a9523b9018f9c6c329971c9712407 - 353a472104000f0eed2dd37b1787d24c31ffd441 (And 458 more changes) GitOrigin-RevId: 3d87332e557378c258f09496bf02227240a0ebf3
0 parents  commit b09ead7

234 files changed

Lines changed: 67113 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: 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.6.1

.github/workflows/main.yml

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
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+
version:
29+
description: "Release version"
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+
- uses: actions/cache@v4
39+
with:
40+
path: |
41+
~/.cache/bazelisk
42+
~/.cache/bazel
43+
key: bazel-${{ hashFiles('common.bazelrc', '.bazelrc', '.bazelversion', 'WORKSPACE', 'MODULE.bazel', 'requirements.txt') }}
44+
restore-keys: bazel-
45+
- run: bazelisk test //...
46+
47+
build-and-upload-tools:
48+
needs: [build-and-test]
49+
strategy:
50+
matrix:
51+
os: [linux, windows, darwin]
52+
arch: [amd64, arm64]
53+
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v4
57+
- uses: actions/cache@v4
58+
with:
59+
path: |
60+
~/.cache/bazelisk
61+
~/.cache/bazel
62+
key: bazel-${{ hashFiles('common.bazelrc', '.bazelrc', '.bazelversion', 'WORKSPACE', 'MODULE.bazel', 'requirements.txt') }}
63+
restore-keys: bazel-
64+
- run: bazel/tools/update_version_bzl.sh version.bzl
65+
- run: bazelisk build --stamp "--platforms=@rules_go//go/toolchain:${{ matrix.os }}_${{ matrix.arch }}" //agent/cmd/agent //tools/nbictl/cmd/nbictl
66+
67+
- name: Package binary
68+
if: ${{ matrix.os != 'windows' }}
69+
run: |
70+
zip -j nbictl-${{ matrix.os }}-${{ matrix.arch }}.zip bazel-bin/tools/nbictl/cmd/nbictl/nbictl_/nbictl
71+
zip -j agent-${{ matrix.os }}-${{ matrix.arch }}.zip bazel-bin/agent/cmd/agent/agent_/agent
72+
73+
- name: Package binary - Windows
74+
if: ${{ matrix.os == 'windows' }}
75+
run: |
76+
zip -j nbictl-${{ matrix.os }}-${{ matrix.arch }}.zip bazel-bin/tools/nbictl/cmd/nbictl/nbictl_/nbictl.exe
77+
zip -j agent-${{ matrix.os }}-${{ matrix.arch }}.zip bazel-bin/agent/cmd/agent/agent_/agent.exe
78+
79+
- name: Upload binary
80+
uses: actions/upload-artifact@v4
81+
with:
82+
name: tools-${{ matrix.os }}-${{ matrix.arch }}
83+
path: "*.zip"
84+
85+
build-and-upload-docs:
86+
needs: [build-and-test]
87+
runs-on: ubuntu-latest
88+
steps:
89+
- uses: actions/checkout@v4
90+
- uses: actions/cache@v4
91+
with:
92+
path: |
93+
~/.cache/bazelisk
94+
~/.cache/bazel
95+
key: bazel-${{ hashFiles('common.bazelrc', '.bazelrc', '.bazelversion', 'WORKSPACE', 'MODULE.bazel', 'requirements.txt') }}
96+
restore-keys: bazel-
97+
- run: bazelisk build "//api:api.html"
98+
- name: Upload API docs
99+
uses: actions/upload-artifact@v4
100+
with:
101+
name: api.html
102+
path: |
103+
bazel-bin/api/api.html/api.html
104+
105+
create-release:
106+
needs: [build-and-upload-tools]
107+
runs-on: ubuntu-latest
108+
if: |
109+
github.event_name == 'workflow_dispatch' &&
110+
inputs.create_release == true &&
111+
inputs.version != ''
112+
113+
steps:
114+
- uses: actions/checkout@v4
115+
116+
- name: Download all artifacts
117+
uses: actions/download-artifact@v4
118+
with:
119+
pattern: tools-*
120+
121+
- name: Create Release
122+
uses: softprops/action-gh-release@v2
123+
with:
124+
tag_name: ${{ inputs.version }}
125+
name: Release ${{ inputs.version }}
126+
# TODO: Change to non-draft after testing.
127+
draft: true
128+
files: |
129+
tools-*/*.zip
130+
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: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
16+
gazelle(name = "gazelle")
17+
18+
gazelle_test(
19+
name = "gazelle_test",
20+
tags = ["manual"],
21+
workspace = "//:BUILD",
22+
)

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)