Skip to content

Commit

Permalink
DEVPROD-6289: Consolidate and rename bootstrap-logkeeper script (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
SupaJoon authored Sep 5, 2024
1 parent 790b0c9 commit 406eed6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 65 deletions.
7 changes: 2 additions & 5 deletions apps/parsley/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,14 @@ develop against them you will need to run both of the servers locally.
**Logkeeper**

1. Clone the [Logkeeper Repository](https://github.com/evergreen-ci/logkeeper)
2. Run `yarn bootstrap-logkeeper` to download some sample resmoke logs from s3.
2. Run `yarn bootstrap-s3-logs` to download some sample resmoke logs from s3.
3. Run the command outputted by the previous step to seed the env variables and
start the local logkeeper server
start the local logkeeper server with the following command:

```bash
LK_CORS_ORIGINS=http:\/\/localhost:\\d+ LK_EVERGREEN_ORIGIN=http://localhost:8080 LK_PARSLEY_ORIGIN=http://localhost:5173 go run main/logkeeper.go --localPath {abs_path_to_parsley}/bin/_bucketdata
```

Note that all log output is piped to a file named `logkeeperapp.log`. You can
use `tail -f logkeeperapp.log` to view the log output.

### GraphQL Type Generation

To be able to use code generation, you'll need to create a symlink to the
Expand Down
2 changes: 1 addition & 1 deletion apps/parsley/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"bootstrap-logkeeper": "./scripts/bootstrap-logkeeper.sh",
"bootstrap-s3-logs": "../../scripts/bootstrap-s3-logs.sh",
"build": "tsc && GIT_SHA=`git rev-parse HEAD` APP_VERSION=$npm_package_version vite build",
"build:local": "env-cmd -e local -r .env-cmdrc.local.json yarn build",
"build:beta": "env-cmd -e beta yarn build",
Expand Down
13 changes: 8 additions & 5 deletions apps/spruce/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,14 @@ Spruce has a minimal dependency on Logkeeper: it is used by Cypress tests on the
Job Logs page. If you'd like to get set up to develop these tests, complete the
following:

1. Clone the [Logkeeper repository](https://github.com/evergreen-ci/logkeeper)
2. Run `yarn bootstrap-logkeeper` within Spruce to download some sample resmoke
logs from S3.
3. Run the command output by the previous step to seed the env variables and
start the local logkeeper server at http://localhost:8080.
1. Clone the [Logkeeper Repository](https://github.com/evergreen-ci/logkeeper)
2. Run `yarn bootstrap-s3-logs` to download some sample resmoke logs from s3.
3. Run the command outputted by the previous step to seed the env variables and
start the local logkeeper server with the following command:

```bash
LK_CORS_ORIGINS=http:\/\/localhost:\\d+ LK_EVERGREEN_ORIGIN=http://localhost:8080 LK_PARSLEY_ORIGIN=http://localhost:5173 go run main/logkeeper.go --localPath {abs_path_to_spruce}/bin/_bucketdata
```

## Deployment

Expand Down
2 changes: 1 addition & 1 deletion apps/spruce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"bootstrap-logkeeper": "./scripts/bootstrap-logkeeper.sh",
"bootstrap-s3-logs": "../../scripts/bootstrap-s3-logs.sh",
"build:beta": "env-cmd -e beta yarn build",
"build:local": "env-cmd -e local -r .env-cmdrc.local.json yarn build",
"build:prod": "env-cmd -e production yarn build",
Expand Down
53 changes: 0 additions & 53 deletions apps/spruce/scripts/bootstrap-logkeeper.sh

This file was deleted.

File renamed without changes.

0 comments on commit 406eed6

Please sign in to comment.