Skip to content

Commit

Permalink
fix(IDX): Revert "chore(IDX): remove testnet directory (#4000)" (#4005)
Browse files Browse the repository at this point in the history
Some teams still rely on those scripts

This reverts commit 5c2881a.
  • Loading branch information
nmattia authored Feb 18, 2025
1 parent 9a5fde4 commit c05b2c3
Show file tree
Hide file tree
Showing 12 changed files with 1,453 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bazel/conf/.bazelrc.build
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ test:precommit --build_tests_only --test_tag_filters="smoke"
build:systest --build_tag_filters=
test:systest --test_output=streamed --test_tag_filters=

build:testnet --build_tag_filters=
test:testnet --test_output=streamed --test_tag_filters=

# For sandboxed actions, mount an empty, writable directory at this absolute path
# (if supported by the sandboxing implementation, ignored otherwise).
test --sandbox_tmpfs_path=/tmp
Expand Down
12 changes: 12 additions & 0 deletions publish/binaries/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,18 @@ upload_artifacts(
}),
)

# https://dfinity.atlassian.net/browse/IDX-2599
# various places in the source code, and possibly other repositories reference
# the legacy upload path. Unwinding it without a will involve an unpredictable amount of time.
upload_artifacts(
name = "legacy_upload",
testonly = True,
inputs = [":binaries"],
remote_subdir = "release",
target_compatible_with = ["@platforms//os:linux"],
visibility = ["//testnet/tools:__pkg__"],
)

BINS_TO_TEST = [":" + name for name in ALL_BINARIES]

sh_test(
Expand Down
13 changes: 13 additions & 0 deletions testnet/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
load("@python_deps//:requirements.bzl", "requirement")
load("@rules_python//python:defs.bzl", "py_binary")

package(default_visibility = ["//visibility:public"])

py_binary(
name = "inventory",
srcs = ["ansible/inventory/inventory.py"],
data = glob(["env/**/*"]),
deps = [
requirement("ansible"),
],
)
Loading

0 comments on commit c05b2c3

Please sign in to comment.