From 66e4a68c609f0197db6518f599c3f852ca212f0f Mon Sep 17 00:00:00 2001 From: Qiming Teng Date: Sat, 18 Jul 2026 16:23:31 +0800 Subject: [PATCH] chore: add Apache 2.0 copyright header to all source files Copyright 2026 FlagOS Contributors This PR was written in part with the assistance of generative AI. --- .github/CODEOWNERS | 14 ++++++++++++++ .github/ISSUE_TEMPLATE/new_test_case.yml | 14 ++++++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 16 ++++++++++++++++ .github/workflows/ci-shared.yml | 14 +++++++++++++- .github/workflows/nightly_integration.yml | 14 ++++++++++++++ .github/workflows/post_test_cases.yml | 14 ++++++++++++++ .github/workflows/pr_validation.yml | 14 ++++++++++++++ .github/workflows/test-post-benchmark-report.yml | 14 ++++++++++++++ .github/workflows/test-post-pytest-report.yml | 14 ++++++++++++++ .github/workflows/test_dispatch.yml | 14 ++++++++++++++ actions/notify-slack/action.yml | 14 +++++++++++++- actions/post-benchmark-report/action.yml | 14 ++++++++++++++ actions/post-pytest-report/action.yml | 14 ++++++++++++++ actions/setup-poetry/action.yml | 14 +++++++++++++- flagos-user-tests/CONTRIBUTING.md | 16 ++++++++++++++++ flagos-user-tests/docs/getting_started.md | 16 ++++++++++++++++ flagos-user-tests/docs/test_format_spec.md | 16 ++++++++++++++++ flagos-user-tests/repos.yaml | 14 ++++++++++++++ flagos-user-tests/resource_map.yaml | 14 ++++++++++++++ flagos-user-tests/tests/flagcx/.gitkeep | 13 +++++++++++++ flagos-user-tests/tests/flaggems/.gitkeep | 13 +++++++++++++ .../tests/flagscale/hetero_train/.gitkeep | 13 +++++++++++++ .../qwen3/demo_0_6b/conf/demo_0_6b.yaml | 14 ++++++++++++++ .../demo_0_6b/conf/inference/demo_0_6b.yaml | 14 ++++++++++++++ .../inference/qwen3/demo_0_6b/demo_0_6b.yaml | 14 ++++++++++++++ flagos-user-tests/tests/flagscale/train/.gitkeep | 13 +++++++++++++ flagos-user-tests/tests/flagtree/.gitkeep | 13 +++++++++++++ flagos-user-tests/tests/megatron-lm-fl/.gitkeep | 13 +++++++++++++ flagos-user-tests/tests/te-fl/.gitkeep | 13 +++++++++++++ flagos-user-tests/tests/vllm-fl/.gitkeep | 13 +++++++++++++ flagos-user-tests/tests/vllm-plugin-fl/.gitkeep | 13 +++++++++++++ flagos-user-tests/tools/activate_conda.sh | 15 +++++++++++++++ flagos-user-tests/tools/collect_test_cases.py | 15 +++++++++++++++ .../tools/generators/create_test_template.py | 15 +++++++++++++++ flagos-user-tests/tools/resolve_matrix.py | 15 +++++++++++++++ flagos-user-tests/tools/run_user_tests.py | 15 +++++++++++++++ flagos-user-tests/tools/test_post_report.sh | 15 +++++++++++++++ .../tools/validators/lint_test_case.py | 15 +++++++++++++++ .../tools/validators/validate_config.py | 15 +++++++++++++++ .../tools/validators/validate_gold_values.py | 15 +++++++++++++++ 40 files changed, 565 insertions(+), 3 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index ce1bbdd..c4766fd 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,3 +1,17 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # FlagOS DevOps - Code Owners # Default owners for everything diff --git a/.github/ISSUE_TEMPLATE/new_test_case.yml b/.github/ISSUE_TEMPLATE/new_test_case.yml index 899c5b4..0757ed6 100644 --- a/.github/ISSUE_TEMPLATE/new_test_case.yml +++ b/.github/ISSUE_TEMPLATE/new_test_case.yml @@ -1,3 +1,17 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: New Test Case Submission description: Submit a new test case for FlagOS repositories title: "[Test Case] " diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 4f688bf..70c88ba 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,3 +1,19 @@ + + ## Test Case PR ### Target Repository diff --git a/.github/workflows/ci-shared.yml b/.github/workflows/ci-shared.yml index 8b13789..a491ed2 100644 --- a/.github/workflows/ci-shared.yml +++ b/.github/workflows/ci-shared.yml @@ -1 +1,13 @@ - +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/.github/workflows/nightly_integration.yml b/.github/workflows/nightly_integration.yml index 9b51668..e1fff9d 100644 --- a/.github/workflows/nightly_integration.yml +++ b/.github/workflows/nightly_integration.yml @@ -1,3 +1,17 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Nightly Integration Test - User Tests on: diff --git a/.github/workflows/post_test_cases.yml b/.github/workflows/post_test_cases.yml index 6e5f243..ad6d157 100644 --- a/.github/workflows/post_test_cases.yml +++ b/.github/workflows/post_test_cases.yml @@ -1,3 +1,17 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Post Test Cases Report on: diff --git a/.github/workflows/pr_validation.yml b/.github/workflows/pr_validation.yml index 0083b57..b3d169b 100644 --- a/.github/workflows/pr_validation.yml +++ b/.github/workflows/pr_validation.yml @@ -1,3 +1,17 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: PR Validation - User Tests on: diff --git a/.github/workflows/test-post-benchmark-report.yml b/.github/workflows/test-post-benchmark-report.yml index f2e3274..a155000 100644 --- a/.github/workflows/test-post-benchmark-report.yml +++ b/.github/workflows/test-post-benchmark-report.yml @@ -1,3 +1,17 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Test post-benchmark-report action on: diff --git a/.github/workflows/test-post-pytest-report.yml b/.github/workflows/test-post-pytest-report.yml index 3090dbb..bffc6ee 100644 --- a/.github/workflows/test-post-pytest-report.yml +++ b/.github/workflows/test-post-pytest-report.yml @@ -1,3 +1,17 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Test post-pytest-report action on: diff --git a/.github/workflows/test_dispatch.yml b/.github/workflows/test_dispatch.yml index c5253bd..3dcf0ac 100644 --- a/.github/workflows/test_dispatch.yml +++ b/.github/workflows/test_dispatch.yml @@ -1,3 +1,17 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Test Dispatch - User Tests on: diff --git a/actions/notify-slack/action.yml b/actions/notify-slack/action.yml index 8b13789..a491ed2 100644 --- a/actions/notify-slack/action.yml +++ b/actions/notify-slack/action.yml @@ -1 +1,13 @@ - +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/actions/post-benchmark-report/action.yml b/actions/post-benchmark-report/action.yml index 88c638f..4f9d7ef 100644 --- a/actions/post-benchmark-report/action.yml +++ b/actions/post-benchmark-report/action.yml @@ -1,3 +1,17 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: 'Post benchmark Report' description: 'Upload benchmark data to backend and query list data with pagination and sorting' diff --git a/actions/post-pytest-report/action.yml b/actions/post-pytest-report/action.yml index 10cf348..3b77a79 100644 --- a/actions/post-pytest-report/action.yml +++ b/actions/post-pytest-report/action.yml @@ -1,3 +1,17 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: 'Post Pytest Report' description: 'Upload a pytest JSON report to a backend HTTP service' diff --git a/actions/setup-poetry/action.yml b/actions/setup-poetry/action.yml index 8b13789..a491ed2 100644 --- a/actions/setup-poetry/action.yml +++ b/actions/setup-poetry/action.yml @@ -1 +1,13 @@ - +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/flagos-user-tests/CONTRIBUTING.md b/flagos-user-tests/CONTRIBUTING.md index 2c606b2..6a64d50 100644 --- a/flagos-user-tests/CONTRIBUTING.md +++ b/flagos-user-tests/CONTRIBUTING.md @@ -1,3 +1,19 @@ + + # Contributing to FlagOS User Tests Thank you for contributing test cases to the FlagOS ecosystem! diff --git a/flagos-user-tests/docs/getting_started.md b/flagos-user-tests/docs/getting_started.md index 1025909..5225372 100644 --- a/flagos-user-tests/docs/getting_started.md +++ b/flagos-user-tests/docs/getting_started.md @@ -1,3 +1,19 @@ + + # Getting Started ## Overview diff --git a/flagos-user-tests/docs/test_format_spec.md b/flagos-user-tests/docs/test_format_spec.md index a916e0d..d421e02 100644 --- a/flagos-user-tests/docs/test_format_spec.md +++ b/flagos-user-tests/docs/test_format_spec.md @@ -1,3 +1,19 @@ + + # Test Format Specification ## Core Concept: User-Perspective Test Cases diff --git a/flagos-user-tests/repos.yaml b/flagos-user-tests/repos.yaml index fe7f816..42674e8 100644 --- a/flagos-user-tests/repos.yaml +++ b/flagos-user-tests/repos.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # FlagOS target repository configuration # # Note: Each test case defines its own setup/run/verify workflow (user perspective). diff --git a/flagos-user-tests/resource_map.yaml b/flagos-user-tests/resource_map.yaml index 30f5f75..4a9cc3e 100644 --- a/flagos-user-tests/resource_map.yaml +++ b/flagos-user-tests/resource_map.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Maps test case resource requirements to GitHub Actions runner labels and container images. # # Architecture: platform-based multi-vendor support diff --git a/flagos-user-tests/tests/flagcx/.gitkeep b/flagos-user-tests/tests/flagcx/.gitkeep index e69de29..a491ed2 100644 --- a/flagos-user-tests/tests/flagcx/.gitkeep +++ b/flagos-user-tests/tests/flagcx/.gitkeep @@ -0,0 +1,13 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/flagos-user-tests/tests/flaggems/.gitkeep b/flagos-user-tests/tests/flaggems/.gitkeep index e69de29..a491ed2 100644 --- a/flagos-user-tests/tests/flaggems/.gitkeep +++ b/flagos-user-tests/tests/flaggems/.gitkeep @@ -0,0 +1,13 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/flagos-user-tests/tests/flagscale/hetero_train/.gitkeep b/flagos-user-tests/tests/flagscale/hetero_train/.gitkeep index e69de29..a491ed2 100644 --- a/flagos-user-tests/tests/flagscale/hetero_train/.gitkeep +++ b/flagos-user-tests/tests/flagscale/hetero_train/.gitkeep @@ -0,0 +1,13 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/flagos-user-tests/tests/flagscale/inference/qwen3/demo_0_6b/conf/demo_0_6b.yaml b/flagos-user-tests/tests/flagscale/inference/qwen3/demo_0_6b/conf/demo_0_6b.yaml index 0f15416..d3b684d 100644 --- a/flagos-user-tests/tests/flagscale/inference/qwen3/demo_0_6b/conf/demo_0_6b.yaml +++ b/flagos-user-tests/tests/flagscale/inference/qwen3/demo_0_6b/conf/demo_0_6b.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + defaults: - _self_ - inference: demo_0_6b diff --git a/flagos-user-tests/tests/flagscale/inference/qwen3/demo_0_6b/conf/inference/demo_0_6b.yaml b/flagos-user-tests/tests/flagscale/inference/qwen3/demo_0_6b/conf/inference/demo_0_6b.yaml index f1ce909..a9e7ac3 100644 --- a/flagos-user-tests/tests/flagscale/inference/qwen3/demo_0_6b/conf/inference/demo_0_6b.yaml +++ b/flagos-user-tests/tests/flagscale/inference/qwen3/demo_0_6b/conf/inference/demo_0_6b.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + llm: model: /home/gitlab-runner/data/Qwen3-0.6B trust_remote_code: true diff --git a/flagos-user-tests/tests/flagscale/inference/qwen3/demo_0_6b/demo_0_6b.yaml b/flagos-user-tests/tests/flagscale/inference/qwen3/demo_0_6b/demo_0_6b.yaml index 1399352..7bb8195 100644 --- a/flagos-user-tests/tests/flagscale/inference/qwen3/demo_0_6b/demo_0_6b.yaml +++ b/flagos-user-tests/tests/flagscale/inference/qwen3/demo_0_6b/demo_0_6b.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + meta: repo: flagscale task: inference diff --git a/flagos-user-tests/tests/flagscale/train/.gitkeep b/flagos-user-tests/tests/flagscale/train/.gitkeep index e69de29..a491ed2 100644 --- a/flagos-user-tests/tests/flagscale/train/.gitkeep +++ b/flagos-user-tests/tests/flagscale/train/.gitkeep @@ -0,0 +1,13 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/flagos-user-tests/tests/flagtree/.gitkeep b/flagos-user-tests/tests/flagtree/.gitkeep index e69de29..a491ed2 100644 --- a/flagos-user-tests/tests/flagtree/.gitkeep +++ b/flagos-user-tests/tests/flagtree/.gitkeep @@ -0,0 +1,13 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/flagos-user-tests/tests/megatron-lm-fl/.gitkeep b/flagos-user-tests/tests/megatron-lm-fl/.gitkeep index e69de29..a491ed2 100644 --- a/flagos-user-tests/tests/megatron-lm-fl/.gitkeep +++ b/flagos-user-tests/tests/megatron-lm-fl/.gitkeep @@ -0,0 +1,13 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/flagos-user-tests/tests/te-fl/.gitkeep b/flagos-user-tests/tests/te-fl/.gitkeep index e69de29..a491ed2 100644 --- a/flagos-user-tests/tests/te-fl/.gitkeep +++ b/flagos-user-tests/tests/te-fl/.gitkeep @@ -0,0 +1,13 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/flagos-user-tests/tests/vllm-fl/.gitkeep b/flagos-user-tests/tests/vllm-fl/.gitkeep index e69de29..a491ed2 100644 --- a/flagos-user-tests/tests/vllm-fl/.gitkeep +++ b/flagos-user-tests/tests/vllm-fl/.gitkeep @@ -0,0 +1,13 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/flagos-user-tests/tests/vllm-plugin-fl/.gitkeep b/flagos-user-tests/tests/vllm-plugin-fl/.gitkeep index e69de29..a491ed2 100644 --- a/flagos-user-tests/tests/vllm-plugin-fl/.gitkeep +++ b/flagos-user-tests/tests/vllm-plugin-fl/.gitkeep @@ -0,0 +1,13 @@ +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/flagos-user-tests/tools/activate_conda.sh b/flagos-user-tests/tools/activate_conda.sh index a8e11bd..f3dba5e 100755 --- a/flagos-user-tests/tools/activate_conda.sh +++ b/flagos-user-tests/tools/activate_conda.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Activate a conda environment inside a container. # # Detects conda installation, initializes the shell, then activates the env. diff --git a/flagos-user-tests/tools/collect_test_cases.py b/flagos-user-tests/tools/collect_test_cases.py index e349a38..950cae8 100644 --- a/flagos-user-tests/tools/collect_test_cases.py +++ b/flagos-user-tests/tools/collect_test_cases.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Collect all test cases and output a JSON report for post-benchmark-report action. Output format (object-of-objects, keyed by case_id): diff --git a/flagos-user-tests/tools/generators/create_test_template.py b/flagos-user-tests/tools/generators/create_test_template.py index e8e261a..f0c5d80 100644 --- a/flagos-user-tests/tools/generators/create_test_template.py +++ b/flagos-user-tests/tools/generators/create_test_template.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Generate user-perspective test case template. Usage: diff --git a/flagos-user-tests/tools/resolve_matrix.py b/flagos-user-tests/tools/resolve_matrix.py index 3d2a549..17f66dc 100644 --- a/flagos-user-tests/tools/resolve_matrix.py +++ b/flagos-user-tests/tools/resolve_matrix.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Resolve test case resources into a GitHub Actions matrix. Reads detection outputs (changed_cases / changed_repos / changed_repos_list) diff --git a/flagos-user-tests/tools/run_user_tests.py b/flagos-user-tests/tools/run_user_tests.py index 754d6a6..497b7ba 100644 --- a/flagos-user-tests/tools/run_user_tests.py +++ b/flagos-user-tests/tools/run_user_tests.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Run user-submitted test cases against FlagOS repositories. Each test case is a self-contained YAML config that defines: diff --git a/flagos-user-tests/tools/test_post_report.sh b/flagos-user-tests/tools/test_post_report.sh index 2783e36..93f7f0c 100755 --- a/flagos-user-tests/tools/test_post_report.sh +++ b/flagos-user-tests/tools/test_post_report.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Local test script for posting test cases report. # # Usage: diff --git a/flagos-user-tests/tools/validators/lint_test_case.py b/flagos-user-tests/tools/validators/lint_test_case.py index e171dde..308b146 100644 --- a/flagos-user-tests/tools/validators/lint_test_case.py +++ b/flagos-user-tests/tools/validators/lint_test_case.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Lint test case directories for completeness and correctness. Checks: diff --git a/flagos-user-tests/tools/validators/validate_config.py b/flagos-user-tests/tools/validators/validate_config.py index 10cf0dc..6991322 100644 --- a/flagos-user-tests/tools/validators/validate_config.py +++ b/flagos-user-tests/tools/validators/validate_config.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Validate YAML configuration files for test cases. Checks: diff --git a/flagos-user-tests/tools/validators/validate_gold_values.py b/flagos-user-tests/tools/validators/validate_gold_values.py index 6d690cc..0589ed4 100644 --- a/flagos-user-tests/tools/validators/validate_gold_values.py +++ b/flagos-user-tests/tools/validators/validate_gold_values.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2026 FlagOS Contributors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Validate gold values JSON files for test cases. Checks: