-
Notifications
You must be signed in to change notification settings - Fork 115
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
Setting up DevContainers to QA Kedro-Viz on Codespaces #2292
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
Signed-off-by: rashidakanchwala <rashida_kanchwala@mckinsey.com>
Signed-off-by: rashidakanchwala <37628668+rashidakanchwala@users.noreply.github.com>
Signed-off-by: rashidakanchwala <rashida_kanchwala@mckinsey.com>
Signed-off-by: rashidakanchwala <rashida_kanchwala@mckinsey.com>
Signed-off-by: rashidakanchwala <rashida_kanchwala@mckinsey.com>
Signed-off-by: rashidakanchwala <rashida_kanchwala@mckinsey.com>
Signed-off-by: rashidakanchwala <rashida_kanchwala@mckinsey.com>
Signed-off-by: rashidakanchwala <rashida_kanchwala@mckinsey.com>
@rashidakanchwala Do we have new Codespace for every change we make in feature branch ? |
@@ -62,7 +62,7 @@ export const FlowchartPrimaryToolbar = ({ | |||
className={'pipeline-menu-button--labels'} | |||
dataTest={`sidebar-flowchart-labels-btn-${textLabels}`} | |||
icon={LabelIcon} | |||
labelText={`${textLabels ? 'Hide' : 'Show'} text labels`} | |||
labelText={`${textLabels ? 'Hide' : 'Show'} text labelssss`} |
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.
Before we merge this, please revert to labels
😄
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.
yes, I have just kept it for ppl to review so we know there's a difference, shall remove before I merge
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.
@Huongg , i will delete this after u approve.
Ok, it worked for both Jitendra and I. There's a way to do it using Codespaces. We have our call tomm; maybe we can screenshare and I can show you. Basically we have to wait for all the processing to be done --the port doesn't immediately become available. Once it does you can click on the link and it works. |
Signed-off-by: rashidakanchwala <rashida_kanchwala@mckinsey.com>
CONTRIBUTING.md
Outdated
|
||
**1. Once you open a pull request, click on the `Open` icon on the right** | ||
<img width="1510" alt="Screenshot 2024-04-17 at 15 54 36" src="https://github.com/kedro-org/kedro-viz/assets/32060364/4295e00f-f80d-46e5-bb19-336e393f00a5"> | ||
1. Open a GitHub Codespace |
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.
[Kedro-viz.Spellings] Did you really mean 'Codespace'?
<img width="1510" alt="Screenshot 2024-04-17 at 15 54 36" src="https://github.com/kedro-org/kedro-viz/assets/32060364/4295e00f-f80d-46e5-bb19-336e393f00a5"> | ||
1. Open a GitHub Codespace | ||
- Navigate to your branch and click on the Code button. | ||
- Select the Codespaces tab. |
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.
[Kedro-viz.Spellings] Did you really mean 'Codespaces'?
1. Open a GitHub Codespace | ||
- Navigate to your branch and click on the Code button. | ||
- Select the Codespaces tab. | ||
- Create a new Codespace or open an existing one. |
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.
[Kedro-viz.Spellings] Did you really mean 'Codespace'?
|
||
2. Codespace Initialization |
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.
[Kedro-viz.Spellings] Did you really mean 'Codespace'?
|
||
2. Codespace Initialization |
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.
[Kedro-viz.ukspelling] In general, use UK English spelling instead of 'Initialization'.
|
||
2. Codespace Initialization | ||
- If this is your first time opening the Codespace, it will start rebuilding your development container. |
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.
[Kedro-viz.Spellings] Did you really mean 'Codespace'?
|
||
2. Codespace Initialization | ||
- If this is your first time opening the Codespace, it will start rebuilding your development container. | ||
- If you have used it before, the dev container setup will already be available. |
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.
[Kedro-viz.Spellings] Did you really mean 'dev'?
**3. Please wait until the frontend and backend builds are successful. You can check it by clicking on `frontend` and `backend` tabs in the terminal. (Estimated build time : 5 minutes)** | ||
<img width="1455" alt="Screenshot 2024-04-17 at 15 59 46" src="https://github.com/kedro-org/kedro-viz/assets/32060364/ae080672-4a48-4178-b83e-70274071497f"> | ||
<img width="1456" alt="Screenshot 2024-04-17 at 16 04 38" src="https://github.com/kedro-org/kedro-viz/assets/32060364/af60ea0a-6148-4354-938e-3a0ef7b9e711"> | ||
4. Rebuilding the Dev Container |
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.
[Kedro-viz.Spellings] Did you really mean 'Dev'?
- Navigate to the Ports tab. | ||
- Click on the relevant port to access the running UI. | ||
|
||
Your UI should now be running in GitHub Codespaces, ready for testing! |
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.
[Kedro-viz.Spellings] Did you really mean 'Codespaces'?
|
||
**1. Once you open a pull request, click on the `Open` icon on the right** | ||
<img width="1510" alt="Screenshot 2024-04-17 at 15 54 36" src="https://github.com/kedro-org/kedro-viz/assets/32060364/4295e00f-f80d-46e5-bb19-336e393f00a5"> | ||
1. Open a GitHub Codespaces |
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.
[Kedro-viz.Spellings] Did you really mean 'Codespaces'?
Signed-off-by: rashidakanchwala <37628668+rashidakanchwala@users.noreply.github.com>
Signed-off-by: rashidakanchwala <37628668+rashidakanchwala@users.noreply.github.com>
Signed-off-by: rashidakanchwala <rashida_kanchwala@mckinsey.com>
@@ -14,4 +14,5 @@ jobs: | |||
- uses: actions/checkout@v4 | |||
- uses: errata-ai/vale-action@reviewdog | |||
with: | |||
fail_on_error: false |
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.
i just added this check because vale shouldn't fail our PRs but it should highlight the grammar mistakes
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.
Hey, I tested it, and everything works fine on my end. @rashidakanchwala, thanks for updating it! Just one note: the Vale comments appear on the main review page instead of in the "Files changed" section. This might not be caused by this PR, so let's go ahead and merge it once you're happy to do so. If we notice the same issue in other PRs, we can look into fixing it.
Signed-off-by: rashidakanchwala <rashida_kanchwala@mckinsey.com>
- Enable Kedro-Viz in VSCode to list pipelines using the filter icon. (#2269) | ||
|
||
## Bug fixes and other changes | ||
|
||
- Add ESM bundle for Kedro-Viz. (#2268) | ||
- Fix `%run_viz` using old process in jupyter notebook. (#2267) | ||
- Make Kedro-Viz compatible with the new `KedroDataCatalog`. (#2274) | ||
- Add Dev Containers to QA Kedro-Viz on Github Codespaces. (#2292) |
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.
[Kedro-viz.Spellings] Did you really mean 'Dev'?
- Enable Kedro-Viz in VSCode to list pipelines using the filter icon. (#2269) | ||
|
||
## Bug fixes and other changes | ||
|
||
- Add ESM bundle for Kedro-Viz. (#2268) | ||
- Fix `%run_viz` using old process in jupyter notebook. (#2267) | ||
- Make Kedro-Viz compatible with the new `KedroDataCatalog`. (#2274) | ||
- Add Dev Containers to QA Kedro-Viz on Github Codespaces. (#2292) |
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.
[Kedro-viz.Spellings] Did you really mean 'Github'?
- Enable Kedro-Viz in VSCode to list pipelines using the filter icon. (#2269) | ||
|
||
## Bug fixes and other changes | ||
|
||
- Add ESM bundle for Kedro-Viz. (#2268) | ||
- Fix `%run_viz` using old process in jupyter notebook. (#2267) | ||
- Make Kedro-Viz compatible with the new `KedroDataCatalog`. (#2274) | ||
- Add Dev Containers to QA Kedro-Viz on Github Codespaces. (#2292) |
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.
[Kedro-viz.Spellings] Did you really mean 'Codespaces'?
Description
Resolves #2270
This PR adds the dev container setup in Codespaces to streamline the QA process for Kedro-Viz. Inside the dev container it does the following
Builds the frontend using make build to get the latest static assets.
Installs Kedro-Viz as an editable package with pip install -e package.
Builds the demo project using kedro viz build.
Serves the static build using python -m http.server.
To learn more about Dev Containers - https://www.gitpod.io/docs/flex/configuration/devcontainer
QA notes
Click on 'Code', then create a 'Codespace' or use an existing active one. And let it rebuild your codespace. Then it will create a port at the end of it, you can go to it and access the Kedro Viz link.
Checklist
RELEASE.md
file