Skip to content
Merged
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
1 change: 1 addition & 0 deletions crates/controller-py/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2026 Huawei Technologies Co., Ltd. All Rights Reserved.
// Copyright 2026 The TransferQueue Team
// SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/controller/src/engine.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2026 Huawei Technologies Co., Ltd. All Rights Reserved.
// Copyright 2026 The TransferQueue Team
// SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/controller/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2026 Huawei Technologies Co., Ltd. All Rights Reserved.
// Copyright 2026 The TransferQueue Team
// SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/controller/src/log.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2026 Huawei Technologies Co., Ltd. All Rights Reserved.
// Copyright 2026 The TransferQueue Team
// SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/controller/src/state.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2026 Huawei Technologies Co., Ltd. All Rights Reserved.
// Copyright 2026 The TransferQueue Team
// SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/controller/src/state/checkpoint.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2026 Huawei Technologies Co., Ltd. All Rights Reserved.
// Copyright 2026 The TransferQueue Team
// SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/controller/src/state/kv.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2026 Huawei Technologies Co., Ltd. All Rights Reserved.
// Copyright 2026 The TransferQueue Team
// SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/controller/src/state/links.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2026 Huawei Technologies Co., Ltd. All Rights Reserved.
// Copyright 2026 The TransferQueue Team
// SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/controller/src/state/metrics.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2026 Huawei Technologies Co., Ltd. All Rights Reserved.
// Copyright 2026 The TransferQueue Team
// SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/controller/src/transport.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2026 Huawei Technologies Co., Ltd. All Rights Reserved.
// Copyright 2026 The TransferQueue Team
// SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions crates/controller/src/wire.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Copyright 2026 Huawei Technologies Co., Ltd. All Rights Reserved.
// Copyright 2026 The TransferQueue Team
// SPDX-License-Identifier: Apache-2.0

Expand Down
15 changes: 12 additions & 3 deletions tests/sanity/check_license.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Copyright 2024 Bytedance Ltd. and/or its affiliates
# Copyright 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2025 The TransferQueue Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -19,8 +20,15 @@
from collections.abc import Iterable
from pathlib import Path

LICENSE_HEADER_RE = re.compile(
r"Copyright \d{4}(?:-\d{4})? (?:Huawei Technologies Co\., Ltd\. All Rights Reserved\.|The TransferQueue Team)"
REQUIRED_COPYRIGHT_PATTERNS = (
(
"Huawei Technologies Co., Ltd.",
re.compile(r"Copyright \d{4}(?:-\d{4})? Huawei Technologies Co\., Ltd\. All Rights Reserved\."),
),
(
"The TransferQueue Team",
re.compile(r"Copyright \d{4}(?:-\d{4})? The TransferQueue Team"),
),
)
SUPPORTED_SUFFIXES = {".py", ".rs"}
IGNORED_DIRS = {
Expand Down Expand Up @@ -69,4 +77,5 @@ def get_source_files(path_arg: Path) -> Iterable[Path]:
path_in_str = str(path)
print(path_in_str)
header_text = "\n".join(path.read_text(encoding="utf-8").splitlines()[:20])
assert LICENSE_HEADER_RE.search(header_text), f"file {path_in_str} does not contain license"
missing = [owner for owner, pattern in REQUIRED_COPYRIGHT_PATTERNS if not pattern.search(header_text)]
assert not missing, f"file {path_in_str} is missing copyright header(s) for: {', '.join(missing)}"
1 change: 1 addition & 0 deletions tests/test_mooncake_bootstrap.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2026 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2026 The TransferQueue Team
# SPDX-License-Identifier: Apache-2.0

Expand Down
1 change: 1 addition & 0 deletions tests/test_mooncake_buffer_pool.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2025 The TransferQueue Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions tests/test_mooncake_client_thread_context.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2025 The TransferQueue Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions tests/test_mooncake_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2025 The TransferQueue Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions tests/test_rust_controller.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2026 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2026 The TransferQueue Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions tests/test_simple_storage_scheduling.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2025 The TransferQueue Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions transfer_queue/rust_controller.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2026 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2026 The TransferQueue Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions transfer_queue/utils/mooncake_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2025 The TransferQueue Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions tutorial/07_shared_fields.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2025 The TransferQueue Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions tutorial/08_data_parser.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2025 The TransferQueue Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions tutorial/09_data_dump.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2025 The TransferQueue Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions tutorial/10_kv_locks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright 2025 Huawei Technologies Co., Ltd. All Rights Reserved.
# Copyright 2025 The TransferQueue Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
Loading