Skip to content

Commit 3ef471e

Browse files
JasonVMoCopilot
andcommitted
docs(agents): address knowledge review feedback
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5636278 commit 3ef471e

2 files changed

Lines changed: 15 additions & 16 deletions

File tree

‎.agents/knowledge/process/pull-requests.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sources:
1010
- .github/workflows/microsoft-pr.yml#check-changesets
1111
- docsite/docs/contributing/backporting.md
1212
- docsite/docs/contributing/versioning.md
13-
verified: 2026-10-28
13+
verified: 2026-11-10
1414
rules: [conventional-title, fill-template, changesets-for-stable]
1515
related: [tooling.commands]
1616
---
@@ -23,7 +23,7 @@ Use when: you write a PR title or body, add a Changeset, or backport a change. N
2323

2424
## Rules
2525

26-
- **process.pull-requests.conventional-title:** Write PR titles as Conventional Commits, such as `fix(textinput): handle focus correctly`. CI lints the title with `@rnx-kit/commitlint-lite`.
26+
- **process.pull-requests.conventional-title:** Write PR titles as Conventional Commits, such as `fix(textinput): handle focus correctly`. When adding a scope, prefer a component or feature; `macos` is redundant in this fork. CI lints the title with `@rnx-kit/commitlint-lite`.
2727
- **process.pull-requests.fill-template:** Fill in the template's `## Summary:` and `## Test Plan:` sections. The Test Plan lists each exact command you ran with its result, plus screenshots for UI changes.
2828
- **process.pull-requests.changesets-for-stable:** Add a Changeset with `yarn change` only when the PR targets a `*-stable` branch. PRs into `main` don't need one.
2929

‎.agents/knowledge/testing/rntester-macos.md‎

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ kind: procedure
55
status: active
66
load_when: Building, running, or debugging RNTester-macOS, or validating a native macOS change
77
sources:
8-
- .github/workflows/microsoft-build-rntester.yml#RCT_NEW_ARCH_ENABLED
9-
- .ado/scripts/xcodebuild.sh#derivedDataPath
8+
- .github/workflows/microsoft-build-rntester.yml
109
- packages/rn-tester/Podfile:6-28
1110
- packages/rn-tester/js/utils/RNTesterList.macos.js
12-
verified: 2026-10-28
11+
verified: 2026-11-10
1312
rules: [build-like-ci, open-workspace]
1413
related: [tooling.commands]
1514
---
@@ -22,33 +21,33 @@ Use when: you build or run RNTester-macOS, or you need to prove a native macOS c
2221

2322
## Rules
2423

25-
- **testing.rntester-macos.build-like-ci:** Install Pods with `RCT_NEW_ARCH_ENABLED=1` and build through `.ado/scripts/xcodebuild.sh`, as CI does. Report the exact commands you ran and their result.
26-
- **testing.rntester-macos.open-workspace:** Open `packages/rn-tester/RNTesterPods.xcworkspace`, not the `.xcodeproj`. CocoaPods generates the workspace.
24+
- **testing.rntester-macos.build-like-ci:** Follow the [RNTester build workflow](../../../.github/workflows/microsoft-build-rntester.yml) for the current runner, toolchain versions, dependency setup, and build commands. If building with CocoaPods, install Pods with `RCT_NEW_ARCH_ENABLED=1`. Report the exact commands you ran and their result.
25+
- **testing.rntester-macos.open-workspace:** If building with CocoaPods, open `packages/rn-tester/RNTesterPods.xcworkspace`, not the `.xcodeproj`. CocoaPods generates the workspace.
2726

2827
## Procedure
2928

29+
For CI-equivalent steps, use the [RNTester build workflow](../../../.github/workflows/microsoft-build-rntester.yml).
30+
When building locally with CocoaPods:
31+
3032
```sh
3133
cd packages/rn-tester
3234
bundle install
3335
RCT_NEW_ARCH_ENABLED=1 bundle exec pod install
34-
cd ../..
35-
.ado/scripts/xcodebuild.sh packages/rn-tester/RNTesterPods.xcworkspace macosx Debug RNTester-macOS build
36-
yarn start # Metro, in a second terminal, before you launch the app
3736
```
3837

38+
Start Metro in a second terminal before launching the app.
39+
3940
## Facts
4041

41-
- CI builds three schemes on a `macos-26` runner: `RNTester-macOS` (`macosx`), `RNTester` (`iphonesimulator`), and `RNTester-visionOS` (`xrsimulator`). It builds them but runs no native tests.
42-
- Each scheme builds with static libraries and with `USE_FRAMEWORKS=dynamic`. Dynamic builds are still in progress and don't fail the check.
43-
- The wrapper passes `CODE_SIGNING_ALLOWED=NO`, writes derived data next to the workspace, and installs `xcbeautify` with Homebrew if it's missing. Set `USE_CCACHE=1` to build through ccache.
44-
- The Podfile needs cmake and installs it with Homebrew if it's missing. It builds for iOS, macOS, and visionOS.
42+
- The [RNTester build workflow](../../../.github/workflows/microsoft-build-rntester.yml) is the source of truth for the CI runner, schemes, SDKs, and build configuration.
43+
- When using CocoaPods, the Podfile requires cmake and installs it with Homebrew if it's missing and Homebrew is available. It builds for iOS, macOS, and visionOS.
4544
- The macOS example list re-exports the iOS list, so an example added to the iOS list also appears on macOS.
4645

4746
## Pitfalls
4847

49-
- After you change native dependencies or switch branches, run `pod install` again before building.
48+
- When building with CocoaPods, run `pod install` again after changing native dependencies or switching branches.
5049
- A green macOS build doesn't prove iOS or visionOS still compile. When you change shared Apple code, build the `RNTester` scheme with `iphonesimulator` too.
5150

5251
## Verify
5352

54-
The wrapper exits 0 when the build succeeds, and the app launches with Metro running.
53+
The build succeeds, and the app launches with Metro running.

0 commit comments

Comments
 (0)