You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ If this does not work, you should try and fix the errors and then run the comman
40
40
-`just test` - runs all tests in debug mode
41
41
-`just test release` - runs all tests in release mode
42
42
43
-
Note that if any guest code has changed, you will need to run `just guests` to build the guest library, before running the tests, if the test fail make sure to run `just guests` again to build the guest library, before running the tests again.
43
+
**IMPORTANT** You will need to run `just guests` to build the guest librarybefore running the tests.
44
44
45
45
Before pushing your code, make sure to run the following commands to ensure that everything is working correctly make sure all tests pass by running
46
46
```bash
@@ -50,17 +50,25 @@ just test-like-ci release
50
50
51
51
## Key Instructions
52
52
53
+
**IMPORTANT**: Please make sure to follow these instructions when making changes to the codebase. If you cannot follow these instructions, please discuss it with the team first.
54
+
53
55
Follow best practices and idioms for writing Rust code.
54
56
Maintain the structure and organization of the codebase. Do not introduce new crates or dependencies without discussing them first.
55
57
Make sure to write tests for any new code you add. Follow the existing testing patterns in the codebase.
56
58
Make sure to fully document any new code you add. Use rustdoc comments and follow guidelines for good documentation.
57
59
Make sure that any changes which alter anything documented in the README or the documentation in the docs directory are reflected in the documentation.
60
+
Make sure that you label the PRs that you create with the correct labels. You can find details about which labels to use in the documents `docs\github-labels,md`
61
+
Make sure that you do not include any large binary files in your PR. If you need to include a large binary file, please discuss it with the team first.
62
+
Make sure that you keep commits small and focused. Each commit should represent a single change or addition to the codebase. This will make it easier for reviewers to understand your changes and for you to revert them if necessary.
63
+
Make sure that you arrange your commits in a logical order. You can use `git rebase -i` to do this.
64
+
If you update your PR branch with new commits, make sure to rebase your branch on top of the main branch. This will help keep the commit history clean and make it easier to review your changes
65
+
Make sure that you do not have any merge commits in your PR.
58
66
59
67
## Repository Structure
60
68
-`dev/` - contains development scripts and tools
61
69
-`src/` - contains the source code for the project
62
-
.editorconfig - contains the editor config for the project you should use this to configure your editor to use the same settings as the rest of the projec
63
-
- Justfile - contains the just commands for building, testing and running the project
70
+
-`.editorconfig` - contains the editor config for the project you should use this to configure your editor to use the same settings as the rest of the project
71
+
-`Justfile` - contains the just commands for building, testing and running the project
64
72
-`fuzz` - contains the fuzzing tests for the project
65
73
-`src/hyperlight_common/` - contains the common code shared between the host and guest
66
74
-`src/hyperlight_guest/` - contains the hyperlight-guest library code
0 commit comments