GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add guidance for LLM agents (#18036) · Raghuvardhan-Reddy78/netty@72fd2dd

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • ci-pr.yml
  • AGENTS.md
  • pom.xml
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/ci-pr.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci-pr.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ jobs:
154154
# ALL, NONE or the comma separated list of modules, see .github/scripts/mvn_affected.sh
155155
NETTY_AFFECTED_MODULES: ${{ needs.detect-affected.outputs.modules }}
156156
NETTY_MVN: ./mvnw.cmd
157-
run: ./.github/scripts/mvn_affected.ps1 -B -ntp --file pom.xml clean install -Pboringssl -DskipHttp2Testsuite=true -DskipAutobahnTestsuite=true
157+
run: ./.github/scripts/mvn_affected.ps1 -B -ntp --file pom.xml clean install -Pboringssl -DskipHttp2Testsuite=true -DskipAutobahnTestsuite=true -Drevapi.skip=true
158158

159159
- name: print JVM thread dumps when cancelled
160160
uses: ./.github/actions/thread-dump-jvms
@@ -233,7 +233,7 @@ jobs:
233233
#
234234
# Use tcnative.classifier that is empty as we don't support using the shared lib version on ubuntu.
235235
run: |
236-
JAVA_HOME=/usr/lib/jvm/java-11-openjdk-${{ matrix.java_arch || matrix.arch }} ./mvnw -V -B -ntp -pl testsuite-native -am clean package -DskipTests=true -Dcheckstyle.skip=true -DskipNativeTestsuite=false -Dtcnative.classifier=
236+
JAVA_HOME=/usr/lib/jvm/java-11-openjdk-${{ matrix.java_arch || matrix.arch }} ./mvnw -V -B -ntp -pl testsuite-native -am clean package -DskipTests=true -Drevapi.skip=true -Dcheckstyle.skip=true -DskipNativeTestsuite=false -Dtcnative.classifier=
237237
238238
build-pr:
239239
runs-on: ubuntu-24.04
Collapse file

‎AGENTS.md‎

Copy file name to clipboard
+54Lines changed: 54 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Netty AI agent guidance
2+
3+
## Working agreement
4+
5+
- If the user asks how to contribute or submit their change, mention that contributions require signing the CLA, and point them to https://netty.io/wiki/developer-guide.html for environment setup.
6+
- The agent may only draft trivial PR descriptions, issue comments or review replies. Discussion with maintainers should be in the contributor's own words.
7+
- Issue and pull request descriptions must follow their respective templates in `.github`.
8+
- Changes that are potentially breaking - e.g. adding validation by default, or changes to public API - must be called out in commit messages and PR descriptions.
9+
- Before handing work back, say what you changed and what you verified, so the human can review it properly.
10+
11+
## Branches and Java baselines
12+
13+
| Branch | Role | Java baseline |
14+
| ------ | ---- | ------------- |
15+
| 4.1 | maintenance, bug fixes only | Java 6 |
16+
| 4.2 | default branch, most development | Java 8 |
17+
| 5.0 | next major | Java 25 |
18+
19+
- Check which branch you are on before using any language feature or JDK API.
20+
- Only bug fixes are backported from 4.2 to 4.1.
21+
- Changes that are not specific to one branch are also ported to 5.0.
22+
- Pull requests are usually merged with squash-rebase, so porting is a cherry-pick of a single commit.
23+
- Porting is automatic via PR labels (`needs-cherry-pick-<branch>`, see `.github/workflows/autoport-*.yml`). When a cherry-pick conflicts, the port must be done manually.
24+
25+
## Security
26+
27+
Netty parses untrusted network input (HTTP/1.x, HTTP/2, HTTP/3, and more), implements TLS on top of BoringSSL/OpenSSL, and contains C code.
28+
Treat every change as security-sensitive.
29+
30+
- Validate lengths, counts and offsets that come off the wire. Watch for integer overflow, unbounded allocation and unbounded loops.
31+
- Be careful with reference counting and buffer indices in C and Java code alike.
32+
- Do not weaken or bypass existing validation to make a test pass.
33+
- Refer to applicable RFCs for guidance, and precise parsing/validation rules.
34+
- The Netty Threat Model is available at https://github.com/netty/netty/wiki/Threat-model
35+
- The Netty Security Policy (how to report security issues) is available at https://github.com/netty/.github/blob/main/SECURITY.md
36+
37+
## Build and verify
38+
39+
Do not reimplement CI checks by hand. Run the right build command instead. Environment setup (JDKs, native toolchains) is covered in https://netty.io/wiki/developer-guide.html
40+
41+
- Some modules need .jar files from other modules in order to compile. Prime the local build cache with: `./mvnw install -DskipTests -Pfast -T1C`
42+
- Compiling a single module or running a specific test can be done with standard maven commands.
43+
- Run checkstyle and revapi checks with: `./mvnw verify -DskipTests`
44+
- If a new non-test dependency is added, the `NOTICE.txt` file must be updated with their license notice.
45+
- Check for buffer leaks with `./mvnw <command> -Pleak -Dio.netty.allocator.type=pooled > target/build.log` and the `.github/scripts/check_leak.sh <logfile>` script.
46+
47+
## Style and tests
48+
49+
- New files must have license headers with the year the file was introduced.
50+
- A bug fix comes with a regression test.
51+
- Non-trivial performance fixes (complex code or more than 20 lines changed) must demonstrate their worth with a JMH benchmark in `microbench`.
52+
- Use JUnit 5 and AssertJ for writing tests.
53+
- Don't use mocking unless existing tests for the class already do so, or it would introduce _significant_ complexity to avoid.
54+
- Avoid sleeps in tests if at all possible, avoid sizing test resources off `NettyRuntime.availableProcessors()`, and avoid asserting on elapsed time.
Collapse file

‎pom.xml‎

Copy file name to clipboardExpand all lines: pom.xml
+1-9Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@
239239
<maven.compiler.release>8</maven.compiler.release>
240240
<!-- pax-exam does not work on latest Java12 EA 22 build -->
241241
<skipOsgiTestsuite>true</skipOsgiTestsuite>
242-
<revapi.skip>true</revapi.skip>
243242
</properties>
244243
</profile>
245244
<profile>
@@ -259,7 +258,6 @@
259258
<maven.compiler.release>8</maven.compiler.release>
260259
<!-- pax-exam does not work on latest Java12 EA 22 build -->
261260
<skipOsgiTestsuite>true</skipOsgiTestsuite>
262-
<revapi.skip>true</revapi.skip>
263261
</properties>
264262
</profile>
265263
<profile>
@@ -279,7 +277,6 @@
279277
<maven.compiler.release>8</maven.compiler.release>
280278
<!-- pax-exam does not work on latest Java12 EA 22 build -->
281279
<skipOsgiTestsuite>true</skipOsgiTestsuite>
282-
<revapi.skip>true</revapi.skip>
283280
</properties>
284281
</profile>
285282
<profile>
@@ -300,7 +297,6 @@
300297
<maven.compiler.release>8</maven.compiler.release>
301298
<!-- pax-exam does not work on latest Java12 EA 22 build -->
302299
<skipOsgiTestsuite>true</skipOsgiTestsuite>
303-
<revapi.skip>true</revapi.skip>
304300
</properties>
305301
</profile>
306302
<profile>
@@ -316,7 +312,6 @@
316312

317313
<!-- pax-exam does not work on latest Java12 EA 22 build -->
318314
<skipOsgiTestsuite>true</skipOsgiTestsuite>
319-
<revapi.skip>true</revapi.skip>
320315
</properties>
321316
</profile>
322317
<profile>
@@ -332,7 +327,6 @@
332327
<forbiddenapis.skip>true</forbiddenapis.skip>
333328
<!-- pax-exam does not work on latest Java12 EA 22 build -->
334329
<skipOsgiTestsuite>true</skipOsgiTestsuite>
335-
<revapi.skip>true</revapi.skip>
336330
</properties>
337331
</profile>
338332
<profile>
@@ -349,7 +343,6 @@
349343

350344
<!-- pax-exam does not work on latest Java12 EA 22 build -->
351345
<skipOsgiTestsuite>true</skipOsgiTestsuite>
352-
<revapi.skip>true</revapi.skip>
353346
</properties>
354347
</profile>
355348
<profile>
@@ -366,7 +359,6 @@
366359

367360
<!-- pax-exam does not work on latest Java12 EA 22 build -->
368361
<skipOsgiTestsuite>true</skipOsgiTestsuite>
369-
<revapi.skip>true</revapi.skip>
370362
</properties>
371363
</profile>
372364
<profile>
@@ -383,7 +375,6 @@
383375

384376
<!-- pax-exam does not work on latest Java12 EA 22 build -->
385377
<skipOsgiTestsuite>true</skipOsgiTestsuite>
386-
<revapi.skip>true</revapi.skip>
387378
</properties>
388379
</profile>
389380
<profile>
@@ -684,6 +675,7 @@
684675
<skipOsgiTestsuite>true</skipOsgiTestsuite>
685676
<skipAutobahnTestsuite>true</skipAutobahnTestsuite>
686677
<skipHttp2Testsuite>true</skipHttp2Testsuite>
678+
<skipH3Spec>true</skipH3Spec>
687679
</properties>
688680
</profile>
689681
<profile>

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.