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

Update local-testing document to include debugging techniques #7300

Conversation

lakshmimsft
Copy link
Contributor

Description

Draft outline document to update local-testing document to include debugging techniques used by team.
Team members tagged in document are requested to update sections and create independent PRs with updates.

Type of change

  • This pull request is a minor refactor, code cleanup, test improvement, or other maintenance task and doesn't change the



## Preferred Tools used to visualize k8s logs (pros/cons)
(@yetkin/@vishwa)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm a big fan of stern. https://github.com/stern/stern

  • stern '.*' -n radius-system outputs all logs from Radius components
  • stern 'ucpd.*' -n radius-system outputs UCP logs.

Copy link
Contributor

Choose a reason for hiding this comment

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

It would also be nice to have some non-JSON options for log viewing. JSON logs are good for machines and bad for humans

## Github Pipelines
(@vinaya, @willsmith)

## Container Dev
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
## Container Dev
## Devcontainers

I'd suggest retitling the section. Devcontainer is a specific technology.


## Container Dev
(??) Describe good usecases to debug using dev containers

Copy link
Contributor

Choose a reason for hiding this comment

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

A few usecases I really like for devcontainers

  • You don't need to install anything on your machine. If you're doing a few contributions to a repo it's really nice to have an on rails process for contributing without hunting down dependencies.
  • If a repo has a devcontainer then it supports codespaces. Codespaces are awesome because you can have multiple of them.
  • You can run additional stateful things in a codespace/devcontainer. eg: you can have your codespace launch a Kubernetes cluster and install Radius. Then you can just close VS Code or your browser and it goes away.

This isn't really practical "do this" kind of info, but some of the reasons why devcontainers are useful.

Copy link

This pull request has been automatically marked as stale because it has been inactive for 90 days. Remove stale label or comment or this PR will be closed in 7 days.

@github-actions github-actions bot added the stale label Jun 12, 2024
@github-actions github-actions bot closed this Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants