From e3014c1a2f93e990dac5e1700b60cee597f48a7f Mon Sep 17 00:00:00 2001 From: AstroHan Date: Sat, 22 Aug 2026 21:58:29 +0800 Subject: [PATCH] chore: add the ASF header to the renderer-loss recovery files #3495 branched before #3397 landed, so its two new files arrived without the ASF header and its CI predates the `audit` job. `check:asf-headers` runs in `ci.yml`, so main is currently failing that check and every open PR inherits the failure. `npm run write:asf-headers` produced this; nothing else was touched. Generated-by: Claude Code --- .../main-renderer-process-gone.test.ts | 19 +++++++++++++++++++ .../src/main/main-renderer-process-gone.ts | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/apps/desktop/src/main/__tests__/main-renderer-process-gone.test.ts b/apps/desktop/src/main/__tests__/main-renderer-process-gone.test.ts index b07e6d8b0c..408ba7c7b4 100644 --- a/apps/desktop/src/main/__tests__/main-renderer-process-gone.test.ts +++ b/apps/desktop/src/main/__tests__/main-renderer-process-gone.test.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + import assert from 'node:assert/strict'; import { EventEmitter } from 'node:events'; import { test } from 'node:test'; diff --git a/apps/desktop/src/main/main-renderer-process-gone.ts b/apps/desktop/src/main/main-renderer-process-gone.ts index 9e741df8f4..4ee6904a5b 100644 --- a/apps/desktop/src/main/main-renderer-process-gone.ts +++ b/apps/desktop/src/main/main-renderer-process-gone.ts @@ -1,3 +1,22 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you 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. + */ + import type { RenderProcessGoneDetails } from 'electron'; interface RenderProcessGoneSource {