From 9014fda21c63e306a107c542ac1a49ba66aefb75 Mon Sep 17 00:00:00 2001 From: Katie McLaughlin Date: Wed, 11 Mar 2026 15:38:25 +1100 Subject: [PATCH] chore: add missing headers to run/ samples Identified in #4214, many samples in this repo are missing licence headers according to the header-checker-lint check. This PR adds headers for run/ samples Note: more samples require headers, but many samples may not pass CI, so this PR is intentionally a partial fix. Added via command `go run github.com/google/addlicense@v1.2.0 run/.` --- run/hello-broken/test/e2e_test_cleanup.yaml | 14 ++++++++++++++ run/hello-broken/test/e2e_test_setup.yaml | 14 ++++++++++++++ run/helloworld/test/e2e_test_cleanup.yaml | 14 ++++++++++++++ run/helloworld/test/e2e_test_setup.yaml | 14 ++++++++++++++ run/image-processing/test/app.test.js | 16 ++++++++++++++++ run/image-processing/test/e2e_test_cleanup.yaml | 14 ++++++++++++++ run/image-processing/test/e2e_test_setup.yaml | 14 ++++++++++++++ run/logging-manual/metadata.js | 16 ++++++++++++++++ run/logging-manual/test/e2e_test_cleanup.yaml | 14 ++++++++++++++ run/logging-manual/test/e2e_test_setup.yaml | 14 ++++++++++++++ run/pubsub/test/e2e_test_cleanup.yaml | 14 ++++++++++++++ run/pubsub/test/e2e_test_setup.yaml | 14 ++++++++++++++ run/websockets/public/index.css | 16 ++++++++++++++++ run/websockets/test/e2e_test_cleanup.yaml | 14 ++++++++++++++ run/websockets/test/e2e_test_setup.yaml | 14 ++++++++++++++ 15 files changed, 216 insertions(+) diff --git a/run/hello-broken/test/e2e_test_cleanup.yaml b/run/hello-broken/test/e2e_test_cleanup.yaml index 09f8b7ede9..05192f6937 100644 --- a/run/hello-broken/test/e2e_test_cleanup.yaml +++ b/run/hello-broken/test/e2e_test_cleanup.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# 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. + steps: - id: 'Delete image and service' diff --git a/run/hello-broken/test/e2e_test_setup.yaml b/run/hello-broken/test/e2e_test_setup.yaml index b0e482f92c..179981f4d8 100644 --- a/run/hello-broken/test/e2e_test_setup.yaml +++ b/run/hello-broken/test/e2e_test_setup.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# 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. + steps: - id: 'Build Container Image' diff --git a/run/helloworld/test/e2e_test_cleanup.yaml b/run/helloworld/test/e2e_test_cleanup.yaml index 47434239a9..cdfbac15d8 100644 --- a/run/helloworld/test/e2e_test_cleanup.yaml +++ b/run/helloworld/test/e2e_test_cleanup.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# 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. + steps: - id: 'Delete image and service' diff --git a/run/helloworld/test/e2e_test_setup.yaml b/run/helloworld/test/e2e_test_setup.yaml index 63f9ac3ceb..1e06d2aea6 100644 --- a/run/helloworld/test/e2e_test_setup.yaml +++ b/run/helloworld/test/e2e_test_setup.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# 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. + steps: - id: 'Build Container Image' diff --git a/run/image-processing/test/app.test.js b/run/image-processing/test/app.test.js index 0e9b12da37..28376136bf 100644 --- a/run/image-processing/test/app.test.js +++ b/run/image-processing/test/app.test.js @@ -1,3 +1,19 @@ +/** + * Copyright 2026 Google LLC + * + * 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. + */ + const path = require('path'); const supertest = require('supertest'); diff --git a/run/image-processing/test/e2e_test_cleanup.yaml b/run/image-processing/test/e2e_test_cleanup.yaml index a4f0d3f8d7..83bbd12e93 100644 --- a/run/image-processing/test/e2e_test_cleanup.yaml +++ b/run/image-processing/test/e2e_test_cleanup.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# 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. + steps: - id: 'Delete image and service' diff --git a/run/image-processing/test/e2e_test_setup.yaml b/run/image-processing/test/e2e_test_setup.yaml index 736f812eb9..f8970d1f14 100644 --- a/run/image-processing/test/e2e_test_setup.yaml +++ b/run/image-processing/test/e2e_test_setup.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# 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. + steps: - id: 'Build Container Image' diff --git a/run/logging-manual/metadata.js b/run/logging-manual/metadata.js index 720654c3a7..55fb9f1be9 100644 --- a/run/logging-manual/metadata.js +++ b/run/logging-manual/metadata.js @@ -1,3 +1,19 @@ +/** + * Copyright 2026 Google LLC + * + * 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. + */ + const request = require('got'); // Load the project ID from GCP metadata server. diff --git a/run/logging-manual/test/e2e_test_cleanup.yaml b/run/logging-manual/test/e2e_test_cleanup.yaml index a82fd25c06..c8feb0b47c 100644 --- a/run/logging-manual/test/e2e_test_cleanup.yaml +++ b/run/logging-manual/test/e2e_test_cleanup.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# 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. + steps: - id: 'Delete image and service' diff --git a/run/logging-manual/test/e2e_test_setup.yaml b/run/logging-manual/test/e2e_test_setup.yaml index d5d98d1e50..c82f384726 100644 --- a/run/logging-manual/test/e2e_test_setup.yaml +++ b/run/logging-manual/test/e2e_test_setup.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# 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. + steps: - id: 'Build Container Image' diff --git a/run/pubsub/test/e2e_test_cleanup.yaml b/run/pubsub/test/e2e_test_cleanup.yaml index 210c4316d3..ae6c2a0083 100644 --- a/run/pubsub/test/e2e_test_cleanup.yaml +++ b/run/pubsub/test/e2e_test_cleanup.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# 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. + steps: - id: 'Delete image and service' diff --git a/run/pubsub/test/e2e_test_setup.yaml b/run/pubsub/test/e2e_test_setup.yaml index c7ac634022..f2fa74302b 100644 --- a/run/pubsub/test/e2e_test_setup.yaml +++ b/run/pubsub/test/e2e_test_setup.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# 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. + steps: - id: 'Build Container Image' diff --git a/run/websockets/public/index.css b/run/websockets/public/index.css index c00b9b408e..e40f1ad858 100644 --- a/run/websockets/public/index.css +++ b/run/websockets/public/index.css @@ -1,3 +1,19 @@ +/** + * Copyright 2026 Google LLC + * + * 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. + */ + html, body { height: 100%; } diff --git a/run/websockets/test/e2e_test_cleanup.yaml b/run/websockets/test/e2e_test_cleanup.yaml index 475f80cc34..4d7d019262 100644 --- a/run/websockets/test/e2e_test_cleanup.yaml +++ b/run/websockets/test/e2e_test_cleanup.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# 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. + steps: - id: 'Delete image and service' diff --git a/run/websockets/test/e2e_test_setup.yaml b/run/websockets/test/e2e_test_setup.yaml index d19e28ea01..496a435a91 100644 --- a/run/websockets/test/e2e_test_setup.yaml +++ b/run/websockets/test/e2e_test_setup.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Google LLC +# +# 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. + steps: - id: 'Create VPC Access connector'