-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: update HACKING.md with current descriptions #5507
Conversation
- remove old setup instructions with dotenv - add setup instructions for yarn/vite - add test running instruction - move site speed test running to fitting section - link to maas-dev-setup repo instead of manual instructions how to setup a dev env This file needs more updating but this update should already help new users to set up and running more quickly.
docs/HACKING.md
Outdated
- [Integration tests](#integration-tests) | ||
- [Unit tests](#unit-tests) | ||
- [Performance tests](#performance-tests) | ||
- [Project conventions](#project-conventions){#toc-project-conventions} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great for the most part, just a few minor corrections and changes below
docs/HACKING.md
Outdated
|
||
You can run MAAS-UI on your local machine assuming that you already have an instance of MAAS running somewhere that you can connect to. | ||
|
||
In the following sections we assume that you're having your MAAS back-end running on `http:/10.10.0.30:5240`. This can easily be adapted to other IPs, names, or `https`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double /
after "http"
In the following sections we assume that you're having your MAAS back-end running on `http:/10.10.0.30:5240`. This can easily be adapted to other IPs, names, or `https`. | |
In the following sections we assume that you're having your MAAS back-end running on `http://10.10.0.30:5240`. This can easily be adapted to other IPs, names, or `https`. |
docs/HACKING.md
Outdated
|
||
#### Integration tests | ||
|
||
- To run cypress end to end test run `yarn cypress-open` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- To run cypress end to end test run `yarn cypress-open` | |
- To run Cypress end-to-end tests run `yarn cypress-open` |
docs/HACKING.md
Outdated
Now you are ready to create a PR from GitHub by browsing to the branch that you just set up. | ||
|
||
*Important tips*: | ||
- We use conventional commits and conventional PRs and the format will be enforced by our CI. To make your life easy, you should commit using them right from the start |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- We use conventional commits and conventional PRs and the format will be enforced by our CI. To make your life easy, you should commit using them right from the start | |
- We use [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) and conventional PRs and the format will be enforced by our CI. To make your life easy, you should commit using them right from the start. You can see a list of valid scopes [here](https://github.com/canonical/maas-ui/blob/main/.github/workflows/pr-lint.yml#L19-L37) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the links!
docs/HACKING.md
Outdated
|
||
```shell | ||
multipass shell snap-maas | ||
``` | ||
|
||
#### LXD | ||
### LXD | ||
|
||
```shell | ||
lxc exec snap-maas bash -- su ubuntu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command doesn't need bash
to be called explicitly, you can just do lxc exec snap-maas -- su ubuntu
addresses @ndv99's comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Done
QA steps
# Development setup
and see if you can use them to setup a MAAS UIHACKING.md
here in githubScreenshots
Not needed, see the file here: https://github.com/tmerten/maas-ui/blob/71fe0627eedf9e4bd5cfc79388c6e7fc296e2efe/docs/HACKING.md#set-up-a-development-container
Notes
This file needs more updating but this update should already help new users to set up and running more quickly.