Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions scripts/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,18 @@ def check_java():


def build_core(dir):
print("Start building opendal core")
print("Start building opendal core", flush=True)

subprocess.run(
["cargo", "build", "--release"],
cwd=dir / "core",
check=True,
stderr=subprocess.DEVNULL,
)
print(f"{GREEN}Success to build opendal core{ENDCOLOR}")


def build_java_binding(dir):
print("Start building opendal java binding")
print("Start building opendal java binding", flush=True)

subprocess.run(
[
Expand All @@ -112,8 +111,6 @@ def build_java_binding(dir):
],
check=True,
cwd=dir / "bindings/java",
stderr=subprocess.DEVNULL,
stdout=subprocess.DEVNULL,
)
print(f"> {GREEN}Success to build opendal java binding{ENDCOLOR}")

Expand Down
4 changes: 3 additions & 1 deletion website/community/release/verify.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,15 @@ curl --silent --show-error --location https://github.com/apache/opendal/raw/v${r

The script checks every `*.tar.gz` in the RC directory that has matching `.asc` and `.sha512` files, extracts each `apache-opendal-*-src` tree, verifies `LICENSE` and `NOTICE`, builds `core`, and builds `bindings/java` when that package is present.

The script streams Cargo and Maven output to the terminal so you can follow build progress and inspect errors.

Run the script:

```shell
python ./verify.py
```

You will see the following output if the verification is successful:
You will see output similar to the following if the verification is successful (build logs omitted):

```shell
$ python ./verify.py
Expand Down
Loading