File tree 4 files changed +18
-34
lines changed
4 files changed +18
-34
lines changed Original file line number Diff line number Diff line change
1
+ FROM mcr.microsoft.com/vscode/devcontainers/python:3.11
2
+
3
+ RUN pip install dbt-duckdb==1.5.0 duckdb==0.7.1 recce
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Recce Cloud" ,
3
- "image" : " infuseai/dev-container-base-image:latest" ,
4
- "containerEnv" : {
5
- "RECCE_CI_WORKFLOW_NAME" : " .github/workflows/recce_ci.yml" , // Path to the Recce CI workflow file
6
- "DEPENDENCIES_FILE" : " requirements.txt" , // Path to the python dependencies file
7
- "POST_INSTALL_DEPENDENCIES_COMMAND" : " pip install gradio" , // Command to install python dependencies
8
- "PRE_LAUNCH_RECCE_SERVER_COMMAND" : " cp .recce/recce-state-file/jaffle_shop.duckdb ."
3
+ "build" : {
4
+ "dockerfile" : " Dockerfile"
9
5
},
10
- "customizations" : {
11
- "vscode" : {
12
- "settings" : {
13
- "terminal.integrated.shell.linux" : " /bin/bash"
14
- }
15
- }
6
+ "features" : {
7
+ "ghcr.io/devcontainers/features/github-cli:1" : {}
16
8
},
17
- "forwardPorts" : [ 8000 ],
18
- "portsAttributes" : {
19
- "8000" : {
20
- "label" : " Recce Server" ,
21
- "onAutoForward" : " openBrowser"
22
- }
9
+ "postCreateCommand" : {
10
+ "dbt" : " dbt deps" ,
11
+ "artifact" : " gh repo set-default DataRecce/jaffle_shop_duckdb && run_id=$(gh run list --workflow \" Jaffle Shop Recce CI\" --status success --limit 1 --json databaseId --jq '.[0].databaseId') && gh run download $run_id -n duckdb"
23
12
},
24
- "postStartCommand" : " post_start_command "
25
- }
13
+ "postStartCommand" : " recce server --cloud --review "
14
+ }
Original file line number Diff line number Diff line change 44
44
45
45
- name : Run Recce CI
46
46
run : |
47
- recce run --github-pull-request-url ${{ github.event.pull_request.html_url }}
47
+ recce run --cloud --cloud-token ${{ secrets.RECCE_CLOUD_TOKEN }}
48
48
49
49
- name : Upload DBT Artifacts
50
50
uses : actions/upload-artifact@v4
@@ -56,15 +56,14 @@ jobs:
56
56
uses : actions/upload-artifact@v4
57
57
id : recce-artifact-uploader
58
58
with :
59
- name : recce-state-file
59
+ name : duckdb
60
60
path : |
61
- recce_state.json
62
61
jaffle_shop.duckdb
63
62
64
63
- name : Prepare Recce Summary
65
64
id : recce-summary
66
65
run : |
67
- recce summary recce_state.json > recce_summary.md
66
+ recce summary --cloud --cloud-token ${{ secrets.RECCE_CLOUD_TOKEN }} > recce_summary.md
68
67
cat recce_summary.md >> $GITHUB_STEP_SUMMARY
69
68
echo '${{ env.NEXT_STEP_MESSAGE }}' >> recce_summary.md
70
69
@@ -79,16 +78,10 @@ jobs:
79
78
env :
80
79
ARTIFACT_URL : ${{ steps.recce-artifact-uploader.outputs.artifact-url }}
81
80
NEXT_STEP_MESSAGE : |
82
- ## Next Steps
83
- If you want to check more detail inforamtion about the recce result, please download the [artifact](${{ steps.recce-artifact-uploader.outputs.artifact-url }}) file and open it by [Recce](https://pypi.org/project/recce/) CLI.
84
-
85
81
### How to check the recce result
86
82
```bash
87
- # Unzip the downloaded artifact file
88
- tar -xf recce-state-file.zip
89
-
90
83
# Launch the recce server based on the state file
91
- recce server --review recce_state.json
84
+ recce server --review --cloud
92
85
93
86
# Open the recce server http://localhost:8000 by your browser
94
87
```
Original file line number Diff line number Diff line change 1
1
packages :
2
2
- package : data-mie/dbt_profiler
3
3
version : 0.8.1
4
- - package : dbt-labs/dbt_project_evaluator
5
- version : 0.6.2
4
+ - package : dbt-labs/dbt_utils
5
+ version : 0.9.6
6
6
- package : dbt-labs/audit_helper
7
7
version : 0.11.0
8
-
You can’t perform that action at this time.
0 commit comments