Repository navigation
agents directives from work, project and hobby experience - #14872
DaanHoogland wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14872 +/- ##
=========================================
Coverage 20.92% 20.92%
- Complexity 21142 21143 +1
=========================================
Files 6057 6057
Lines 549556 549556
Branches 73477 73477
=========================================
+ Hits 114991 114992 +1
+ Misses 421116 421114 -2
- Partials 13449 13450 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
🔴 Test Coverage Grade:
|
| Metric | Value |
|---|---|
| Line coverage | 25.87% |
| Branch coverage | 21.09% |
Grade Scale
| Grade | Line Coverage | Meaning |
|---|---|---|
| 🟢 A | ≥ 80% | Excellent - this code sleeps well at night 😴 |
| 🟡 B | 60-79% | Good - almost there, don't stop now 😉 |
| 🟠 C | 40-59% | Acceptable - your code is wearing a seatbelt, but no airbags 😬 |
| 🔴 D | 20-39% | Marginal - boldly shipping where no test has gone before 🖖 |
| ⛔ F | < 20% | Failing - tests? what tests? 🔥 |
Branch coverage is shown as a secondary signal. Grade is determined by line coverage.
View full Actions run
| | `server/` | Manager implementations (business logic) | | ||
| | `engine/schema/` | VO and DAO classes, DB schema and upgrade SQL | | ||
| | `framework/` | Config, DB, security, async jobs | | ||
| | `plugins/` | Hypervisors, storage, network, extensions | |
There was a problem hiding this comment.
| | `plugins/` | Hypervisors, storage, network, extensions | | |
| | `plugins/` | Hypervisors, storage, network, backup implementations, extensions | |
| ```bash | ||
| # Full build (slow) | ||
| mvn clean install -Dnoredist -P developer,systemvm -DskipTests -T8 | ||
| # Incremental build (slow) | ||
| mvn clean install -Dnoredist -P developer,systemvm -pl api,server,engine/schema,client -DskipTests | ||
| # Deploy DB (fast) | ||
| mvn -Pdeveloper -pl developer -Ddeploydb | ||
| # Run the management server | ||
| mvn -pl :cloud-client-ui jetty:run -Dnoredist -Djava.net.preferIPv4Stack=true | ||
| # Single unit test (fast) | ||
| mvn test -pl server -Dtest=FooManagerImplTest | ||
| # Lint and license checks | ||
| pre-commit run --all-files | ||
| ``` |
There was a problem hiding this comment.
Should we add instructions on how to run and build the front-end? And what about the Java version and others?
| - Declare a `ConfigKey` on the service interface, not on the `*Impl`. | ||
| - Touch as few interfaces as possible when adding settings. | ||
| - Put schema changes in the versioned upgrade path under `engine/schema`. | ||
| - Never edit an already released upgrade script. |
There was a problem hiding this comment.
It would be nice to add some instructions about logs, unit tests and modularization (some agents write gigantic methods...)
|
@DaanHoogland thanks for getting this going. I opened #14892 as an alternative layout, not to compete with this one. The idea: most of these rules help people as much as agents, so they live in developer guides under Most of your content is in there. A few things I changed, with the reasons in the PR description. The main ones:
It also covers @bernardodemarco's questions here (logs, unit tests, method size, UI, Java version). Happy to fold it into this PR instead if you'd rather keep one. Whichever is easier for you. |
…, refactor exception Signed-off-by: Brad House <bhouse@nexthop.ai>



Description
This PR, is more of an opinion than a set plan.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?