Skip to content

Commit 35e9c36

Browse files
AlexStocksOmX
andcommitted
chore(storage): license exact-ref compatibility runners
Add the repository-standard Apache 2.0 header to the Linux runner, PowerShell forwarding entrypoint, and Python fixture while preserving each interpreter or command entry position. Constraint: limit the follow-up to the three Task 7 files and leave their exact-ref, controller provenance, argument forwarding, migration, snapshot, and cleanup behavior unchanged Rejected: CI-only exclusions, generated header variants, moving shebangs, changing runtime semantics, or touching the pre-existing .codex recovery state Confidence: high Scope-risk: comment-only headers alter controller file hashes and therefore require a fresh post-commit self-SHA matrix, but do not alter compatibility behavior Directive: Option C Storage Task 7 CI license follow-up Tested: SkyWalking Eyes v0.8.0 targeted header check changed from three invalid files to three valid files; Bash syntax; Python AST; Linux and PowerShell help and mixed-help exit codes; cached diff check Not-tested: post-commit clean-tree full header scan and self-SHA exact-ref matrix, which follow this commit; shellcheck unavailable; CI workflow wiring remains unchanged Related: #422 Co-authored-by: OmX <omx@oh-my-codex.dev> Signed-off-by: Xin.Zh <alexstocks@foxmail.com>
1 parent 6d2971a commit 35e9c36

3 files changed

Lines changed: 52 additions & 0 deletions

File tree

scripts/test-vector-storage-compat.ps1

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# Copyright (c) 2024-present, arana-db Community. All rights reserved.
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one or more
4+
# contributor license agreements. See the NOTICE file distributed with
5+
# this work for additional information regarding copyright ownership.
6+
# The ASF licenses this file to You under the Apache License, Version 2.0
7+
# (the "License"); you may not use this file except in compliance with
8+
# the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
118
[CmdletBinding()]
219
param(
320
[Parameter(ValueFromRemainingArguments = $true)]

scripts/test-vector-storage-compat.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
#!/usr/bin/env bash
22

3+
# Copyright (c) 2024-present, arana-db Community. All rights reserved.
4+
#
5+
# Licensed to the Apache Software Foundation (ASF) under one or more
6+
# contributor license agreements. See the NOTICE file distributed with
7+
# this work for additional information regarding copyright ownership.
8+
# The ASF licenses this file to You under the Apache License, Version 2.0
9+
# (the "License"); you may not use this file except in compliance with
10+
# the License. You may obtain a copy of the License at
11+
#
12+
# http://www.apache.org/licenses/LICENSE-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing, software
15+
# distributed under the License is distributed on an "AS IS" BASIS,
16+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
# See the License for the specific language governing permissions and
18+
# limitations under the License.
19+
320
set -euo pipefail
421

522
readonly EXPECTED_BASE_REF="688d905fec31b54aec76f36676f55efd8b5cfa17"

tests/compat/vector_storage_fixture.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
#!/usr/bin/env python3
2+
3+
# Copyright (c) 2024-present, arana-db Community. All rights reserved.
4+
#
5+
# Licensed to the Apache Software Foundation (ASF) under one or more
6+
# contributor license agreements. See the NOTICE file distributed with
7+
# this work for additional information regarding copyright ownership.
8+
# The ASF licenses this file to You under the Apache License, Version 2.0
9+
# (the "License"); you may not use this file except in compliance with
10+
# the License. You may obtain a copy of the License at
11+
#
12+
# http://www.apache.org/licenses/LICENSE-2.0
13+
#
14+
# Unless required by applicable law or agreed to in writing, software
15+
# distributed under the License is distributed on an "AS IS" BASIS,
16+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
# See the License for the specific language governing permissions and
18+
# limitations under the License.
19+
220
"""Exact-ref Vector storage compatibility runner support."""
321

422
from __future__ import annotations

0 commit comments

Comments
 (0)