Skip to content
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

clp-package: Add the log-viewer and serve it using the log-viewer-webui. #490

Merged
merged 20 commits into from
Jul 24, 2024

Conversation

Henry8192
Copy link
Collaborator

@Henry8192 Henry8192 commented Jul 22, 2024

Description

Integrate yscope-log-viewer to clp:

  1. Add it to .gitmodules, putting it within log-viewer-webui.
  2. Register it in fastify.
  3. In Taskfile.yml, create checksum and build tasks.

Validation performed

Run task package, the build should give no errors.
In clp/build/clp-package/sbin, run start-clp.sh, access localhost:3000/log-viewer/index.html, observe log viewer is loaded.

Copy link
Member

@junhaoliao junhaoliao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the changes. Did we validate whether the YScope Log Viewer is accessible in the clp-package? i.e.,

cd <clp-root>/build/clp-package/sbin
./start-clp.sh

Then access localhost:3000/log-viewer/index.html and observe the Log Viewer is loaded.

(Let's also update the validation steps. )

Taskfile.yml Outdated Show resolved Hide resolved
Taskfile.yml Outdated Show resolved Hide resolved
components/log-viewer-webui/server/settings.json Outdated Show resolved Hide resolved
components/log-viewer-webui/server/settings.json Outdated Show resolved Hide resolved
Taskfile.yml Outdated Show resolved Hide resolved
Co-authored-by: Junhao Liao <[email protected]>
.gitmodules Outdated Show resolved Hide resolved
@junhaoliao junhaoliao requested a review from kirkrodrigues July 23, 2024 20:12
Taskfile.yml Outdated Show resolved Hide resolved
Taskfile.yml Outdated Show resolved Hide resolved
components/log-viewer-webui/server/src/routes/static.js Outdated Show resolved Hide resolved
components/log-viewer-webui/server/src/routes/static.js Outdated Show resolved Hide resolved
Taskfile.yml Show resolved Hide resolved
Taskfile.yml Outdated Show resolved Hide resolved
Taskfile.yml Outdated Show resolved Hide resolved
Taskfile.yml Outdated Show resolved Hide resolved
Taskfile.yml Show resolved Hide resolved
Taskfile.yml Outdated Show resolved Hide resolved
Taskfile.yml Outdated Show resolved Hide resolved
Henry8192 and others added 4 commits July 23, 2024 22:46
LOG_VIEWER_WEBUI_INNER_CLIENT_CHECKSUM_FILE -> LOG_VIEWER_CHECKSUM_FILE
YSCOPE_LOG_VIEWER_OUTPUT_DIR -> LOG_VIEWER_OUTPUT_DIR
inner-client -> log-viewer
@junhaoliao junhaoliao requested a review from kirkrodrigues July 24, 2024 06:01
Taskfile.yml Show resolved Hide resolved
Copy link
Member

@kirkrodrigues kirkrodrigues left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the PR title, how about:

clp-package: Add the log-viewer and serve it using the log-viewer-webui.

@junhaoliao junhaoliao changed the title Integrate yscope-log-viewer to CLP clp-package: Add the log-viewer and serve it using the log-viewer-webui. Jul 24, 2024
Copy link
Member

@junhaoliao junhaoliao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@junhaoliao junhaoliao merged commit be1877d into y-scope:main Jul 24, 2024
12 checks passed
@Henry8192 Henry8192 deleted the ylv-integration branch July 25, 2024 20:44
jackluo923 pushed a commit to jackluo923/clp that referenced this pull request Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants