Skip to content

Commit bf3c1dc

Browse files
bootc-dev Botalexlarsson
authored andcommitted
Sync common files from infra repository
Synchronized from bootc-dev/infra@55772cd. Signed-off-by: bootc-dev Bot <bot@bootc.dev>
1 parent 465c589 commit bf3c1dc

9 files changed

Lines changed: 401 additions & 0 deletions

File tree

.bootc-dev-infra-commit.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
55772cd1ed6efa2f315f6a1cb03b80c575037932

.claude/CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../AGENTS.md

.cursorrules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
AGENTS.md
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "bootc-devenv-debian",
3+
"image": "ghcr.io/bootc-dev/devenv-debian",
4+
"customizations": {
5+
"vscode": {
6+
// Arbitrary, but most of our code is in one of these two
7+
"extensions": [
8+
"rust-lang.rust-analyzer",
9+
"golang.Go"
10+
]
11+
},
12+
"devaipod": {
13+
// When running under devaipod, use minimal capabilities
14+
// (SYS_ADMIN, NET_ADMIN, etc.) instead of full --privileged.
15+
"nestedContainers": true
16+
}
17+
},
18+
"features": {},
19+
// Use privileged mode for broad compatibility (Codespaces, Docker,
20+
// stock devcontainer CLI). devaipod overrides this with tighter
21+
// security via the nestedContainers customization above.
22+
"privileged": true,
23+
"postCreateCommand": {
24+
// Our init script
25+
"devenv-init": "sudo /usr/local/bin/devenv-init.sh"
26+
},
27+
"remoteEnv": {
28+
"PATH": "${containerEnv:PATH}:/usr/local/cargo/bin"
29+
}
30+
}

.devcontainer/devcontainer.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "bootc-devenv-debian",
3+
"image": "ghcr.io/bootc-dev/devenv-debian",
4+
"customizations": {
5+
"vscode": {
6+
// Arbitrary, but most of our code is in one of these two
7+
"extensions": [
8+
"rust-lang.rust-analyzer",
9+
"golang.Go"
10+
]
11+
},
12+
"devaipod": {
13+
// When running under devaipod, use minimal capabilities
14+
// (SYS_ADMIN, NET_ADMIN, etc.) instead of full --privileged.
15+
"nestedContainers": true
16+
}
17+
},
18+
"features": {},
19+
// Use privileged mode for broad compatibility (Codespaces, Docker,
20+
// stock devcontainer CLI). devaipod overrides this with tighter
21+
// security via the nestedContainers customization above.
22+
"privileged": true,
23+
"postCreateCommand": {
24+
// Our init script
25+
"devenv-init": "sudo /usr/local/bin/devenv-init.sh"
26+
},
27+
"remoteEnv": {
28+
"PATH": "${containerEnv:PATH}:/usr/local/cargo/bin"
29+
}
30+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "bootc-devenv-ubuntu",
3+
"image": "ghcr.io/bootc-dev/devenv-ubuntu",
4+
"customizations": {
5+
"vscode": {
6+
// Arbitrary, but most of our code is in one of these two
7+
"extensions": [
8+
"rust-lang.rust-analyzer",
9+
"golang.Go"
10+
]
11+
},
12+
"devaipod": {
13+
// When running under devaipod, use minimal capabilities
14+
// (SYS_ADMIN, NET_ADMIN, etc.) instead of full --privileged.
15+
"nestedContainers": true
16+
}
17+
},
18+
"features": {},
19+
// Use privileged mode for broad compatibility (Codespaces, Docker,
20+
// stock devcontainer CLI). devaipod overrides this with tighter
21+
// security via the nestedContainers customization above.
22+
"privileged": true,
23+
"postCreateCommand": {
24+
// Our init script
25+
"devenv-init": "sudo /usr/local/bin/devenv-init.sh"
26+
},
27+
"remoteEnv": {
28+
"PATH": "${containerEnv:PATH}:/usr/local/cargo/bin"
29+
}
30+
}

.gemini/config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# NOTE: This file is canonically maintained in
2+
# <https://github.com/bootc-dev/infra/tree/main/common>
3+
# DO NOT EDIT
4+
#
5+
# This config mainly overrides `summary: false` by default
6+
# as it's really noisy.
7+
have_fun: true
8+
code_review:
9+
disable: false
10+
# Even medium level can be quite noisy, I don't think
11+
# we need LOW. Anyone who wants that type of stuff should
12+
# be able to get it locally or before review.
13+
comment_severity_threshold: MEDIUM
14+
max_review_comments: -1
15+
pull_request_opened:
16+
help: false
17+
summary: false # turned off by default
18+
code_review: true
19+
ignore_patterns: []

AGENTS.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<!-- This file is canonically maintained in <https://github.com/bootc-dev/infra/tree/main/common> -->
2+
3+
# Instructions for AI agents
4+
5+
## CRITICAL instructions for generating commits
6+
7+
### Signed-off-by
8+
9+
Human review is required for all code that is generated
10+
or assisted by a large language model. If you
11+
are a LLM, you MUST NOT include a `Signed-off-by`
12+
on any automatically generated git commits. Only explicit
13+
human action or request should include a Signed-off-by.
14+
If for example you automatically create a pull request
15+
and the DCO check fails, tell the human to review
16+
the code and give them instructions on how to add
17+
a signoff.
18+
19+
### Attribution and AI disclosure
20+
21+
You SHOULD insert an `Assisted-by: AI` tag when the commit contains
22+
substantial assistance, and `Generated-by: AI` when the commit is
23+
effectively entirely generated.
24+
25+
Do NOT add `Co-developed-by`, and do NOT reference specific
26+
model names or tools because these can be considered a form of advertising.
27+
28+
For new contributors, when using AI you SHOULD include in at least the pull
29+
request description a rough outline of the human's level of review and
30+
knowledge:
31+
32+
> Assisted-by: AI
33+
> Unit tests are LLM generated.
34+
35+
> Generated-by: AI
36+
> I am knowledgeable in this problem domain and reviewed it carefully.
37+
38+
> Generated-by: AI
39+
> I don't know Rust|Go|... well, but I did test this and it fixed the problem.
40+
41+
### Large changes
42+
43+
If the generated code is more than ~500 lines of substantial (non-whitespace) code,
44+
encourage the human to file a design issue first to be reviewed by other maintainers.
45+
46+
### Pull request size
47+
48+
It is *very strongly* encouraged to split up "preparatory" commits
49+
that are independently reviewable from the main PR, and submit those separately.
50+
51+
### Commit messages and text
52+
53+
Software can be machine checked (via compilation and unit/integration tests)
54+
but natural languages like English cannot. Encourage the human to review
55+
the commit message text.
56+
57+
## Code guidelines
58+
59+
The [REVIEW.md](REVIEW.md) file describes expectations around
60+
testing, code quality, commit messages, commit organization, etc. If you're
61+
creating a change, it is strongly encouraged after each
62+
commit and especially when the agent thinks a task is complete
63+
to spawn a subagent to perform a review using guidelines (alongside
64+
looking for any other issues).
65+
66+
If the agent is performing a review of other's code, the same
67+
principles apply.
68+
69+
## Follow other guidelines
70+
71+
Look at the project README.md and look for guidelines
72+
related to contribution, such as a CONTRIBUTING.md
73+
and follow those.

0 commit comments

Comments
 (0)