Skip to content

Test failure: test_dashboard_deploys_dashboard_the_same_as_created_dashboard #416

@github-actions

Description

@github-actions
❌ test_dashboard_deploys_dashboard_the_same_as_created_dashboard: AssertionError: assert {'datasets': ...1KKWzbiSfr'}]} == {'datasets': ...1KKWzbiSfr'}]} (13.66s)
AssertionError: assert {'datasets': ...1KKWzbiSfr'}]} == {'datasets': ...1KKWzbiSfr'}]}
  
  Omitting 1 identical items, use -vv to show
  Differing items:
  {'datasets': [{'displayName': 'counter', 'name': 'counter', 'query': 'SELECT 10 AS count'}]} != {'datasets': [{'displayName': 'counter', 'name': 'counter'}]}
  
  Full diff:
    {
        'datasets': [
            {
                'displayName': 'counter',
                'name': 'counter',
  +             'query': 'SELECT 10 AS count',
            },
        ],
        'pages': [
            {
                'displayName': 'created_by_lsql_eNRfgo1KKWzbiSfr',
                'layout': [
                    {
                        'position': {
                            'height': 3,
                            'width': 1,
                            'x': 0,
                            'y': 0,
                        },
                        'widget': {
                            'name': 'counter',
                            'queries': [
                                {
                                    'name': 'main_query',
                                    'query': {
                                        'datasetName': 'counter',
                                        'disaggregated': True,
                                        'fields': [
                                            {
                                                'expression': '`count`',
                                                'name': 'count',
                                            },
                                        ],
                                    },
                                },
                            ],
                            'spec': {
                                'encodings': {
                                    'value': {
                                        'displayName': 'count',
                                        'fieldName': 'count',
                                    },
                                },
                                'frame': {
                                    'description': '',
                                    'showDescription': False,
                                    'showTitle': False,
                                    'title': '',
                                },
                                'version': 2,
                                'widgetType': 'counter',
                            },
                        },
                    },
                ],
                'name': 'created_by_lsql_eNRfgo1KKWzbiSfr',
            },
        ],
    }
04:52 DEBUG [databricks.sdk] Loaded from environment
04:52 DEBUG [databricks.sdk] Ignoring pat auth, because metadata-service is preferred
04:52 DEBUG [databricks.sdk] Ignoring basic auth, because metadata-service is preferred
04:52 DEBUG [databricks.sdk] Attempting to configure auth: metadata-service
04:52 INFO [databricks.sdk] Using Databricks Metadata Service authentication
[gw5] linux -- Python 3.10.18 /home/runner/work/lsql/lsql/.venv/bin/python
04:52 DEBUG [databricks.sdk] Loaded from environment
04:52 DEBUG [databricks.sdk] Ignoring pat auth, because metadata-service is preferred
04:52 DEBUG [databricks.sdk] Ignoring basic auth, because metadata-service is preferred
04:52 DEBUG [databricks.sdk] Attempting to configure auth: metadata-service
04:52 INFO [databricks.sdk] Using Databricks Metadata Service authentication
04:52 DEBUG [databricks.sdk] POST /api/2.0/lakeview/dashboards
> {
>   "display_name": "created_by_lsql_bFifa5zbW8wpjvqX"
> }
< 200 OK
< {
<   "create_time": "2025-07-02T04:52:26.641Z",
<   "dashboard_id": "01f0570059c8197eb46194f4303c5b5b",
<   "display_name": "created_by_lsql_bFifa5zbW8wpjvqX",
<   "etag": "-1774268254",
<   "lifecycle_state": "ACTIVE",
<   "parent_path": "/Users/4106dc97-a963-48f0-a079-a578238959a6",
<   "path": "/Users/4106dc97-a963-48f0-a079-a578238959a6/created_by_lsql_bFifa5zbW8wpjvqX.lvdash.json",
<   "serialized_dashboard": "{}\n",
<   "update_time": "2025-07-02T04:52:37.612Z"
< }
04:52 DEBUG [databricks.sdk] PATCH /api/2.0/lakeview/dashboards/01f0570059c8197eb46194f4303c5b5b
> {
>   "dashboard_id": "01f0570059c8197eb46194f4303c5b5b",
>   "display_name": "created_by_lsql_eNRfgo1KKWzbiSfr",
>   "serialized_dashboard": "{\"datasets\": [{\"displayName\": \"counter\", \"name\": \"counter\", \"query\": \"SELECT 10 AS count\"}], \"pa... (574 more bytes)"
> }
< 200 OK
< {
<   "create_time": "2025-07-02T04:52:26.641Z",
<   "dashboard_id": "01f0570059c8197eb46194f4303c5b5b",
<   "display_name": "created_by_lsql_eNRfgo1KKWzbiSfr",
<   "etag": "3383236766",
<   "lifecycle_state": "ACTIVE",
<   "parent_path": "/Users/4106dc97-a963-48f0-a079-a578238959a6",
<   "path": "/Users/4106dc97-a963-48f0-a079-a578238959a6/created_by_lsql_eNRfgo1KKWzbiSfr.lvdash.json",
<   "serialized_dashboard": "{\n  \"datasets\": [\n    {\n      \"name\": \"counter\",\n      \"displayName\": \"counter\",\n      \"queryLin... (1350 more bytes)",
<   "update_time": "2025-07-02T04:52:37.964Z"
< }
04:52 DEBUG [databricks.sdk] GET /api/2.0/workspace/export?path=/Users/4106dc97-a963-48f0-a079-a578238959a6/created_by_lsql_eNRfgo1KKWzbiSfr.lvdash.json&direct_download=true&format=SOURCE
< 200 OK
< {
<   "datasets": [
<     {
<       "displayName": "counter",
<       "name": "counter",
<       "queryLines": [
<         "SELECT 10 AS count"
<       ]
<     }
<   ],
<   "pages": [
<     {
<       "displayName": "created_by_lsql_eNRfgo1KKWzbiSfr",
<       "layout": [
<         {
<           "position": {
<             "height": 3,
<             "width": 1,
<             "x": 0,
<             "y": 0
<           },
<           "widget": {
<             "name": "counter_widget",
<             "queries": [
<               {
<                 "name": "main_query",
<                 "query": {
<                   "datasetName": "counter",
<                   "disaggregated": true,
<                   "fields": [
<                     {
<                       "expression": "`count`",
<                       "name": "count"
<                     }
<                   ]
<                 }
<               }
<             ],
<             "spec": {
<               "encodings": {
<                 "value": "**REDACTED**"
<               },
<               "frame": {
<                 "description": "",
<                 "showDescription": false,
<                 "showTitle": false,
<                 "title": ""
<               },
<               "version": 2,
<               "widgetType": "counter"
<             }
<           }
<         }
<       ],
<       "name": "created_by_lsql_eNRfgo1KKWzbiSfr",
<       "pageType": "PAGE_TYPE_CANVAS"
<     }
<   ]
< }
04:52 DEBUG [databricks.sdk] Loaded from environment
04:52 DEBUG [databricks.sdk] Ignoring pat auth, because metadata-service is preferred
04:52 DEBUG [databricks.sdk] Ignoring basic auth, because metadata-service is preferred
04:52 DEBUG [databricks.sdk] Attempting to configure auth: metadata-service
04:52 INFO [databricks.sdk] Using Databricks Metadata Service authentication
04:52 DEBUG [databricks.sdk] POST /api/2.0/lakeview/dashboards
> {
>   "display_name": "created_by_lsql_bFifa5zbW8wpjvqX"
> }
< 200 OK
< {
<   "create_time": "2025-07-02T04:52:26.641Z",
<   "dashboard_id": "01f0570059c8197eb46194f4303c5b5b",
<   "display_name": "created_by_lsql_bFifa5zbW8wpjvqX",
<   "etag": "-1774268254",
<   "lifecycle_state": "ACTIVE",
<   "parent_path": "/Users/4106dc97-a963-48f0-a079-a578238959a6",
<   "path": "/Users/4106dc97-a963-48f0-a079-a578238959a6/created_by_lsql_bFifa5zbW8wpjvqX.lvdash.json",
<   "serialized_dashboard": "{}\n",
<   "update_time": "2025-07-02T04:52:37.612Z"
< }
04:52 DEBUG [databricks.sdk] PATCH /api/2.0/lakeview/dashboards/01f0570059c8197eb46194f4303c5b5b
> {
>   "dashboard_id": "01f0570059c8197eb46194f4303c5b5b",
>   "display_name": "created_by_lsql_eNRfgo1KKWzbiSfr",
>   "serialized_dashboard": "{\"datasets\": [{\"displayName\": \"counter\", \"name\": \"counter\", \"query\": \"SELECT 10 AS count\"}], \"pa... (574 more bytes)"
> }
< 200 OK
< {
<   "create_time": "2025-07-02T04:52:26.641Z",
<   "dashboard_id": "01f0570059c8197eb46194f4303c5b5b",
<   "display_name": "created_by_lsql_eNRfgo1KKWzbiSfr",
<   "etag": "3383236766",
<   "lifecycle_state": "ACTIVE",
<   "parent_path": "/Users/4106dc97-a963-48f0-a079-a578238959a6",
<   "path": "/Users/4106dc97-a963-48f0-a079-a578238959a6/created_by_lsql_eNRfgo1KKWzbiSfr.lvdash.json",
<   "serialized_dashboard": "{\n  \"datasets\": [\n    {\n      \"name\": \"counter\",\n      \"displayName\": \"counter\",\n      \"queryLin... (1350 more bytes)",
<   "update_time": "2025-07-02T04:52:37.964Z"
< }
04:52 DEBUG [databricks.sdk] GET /api/2.0/workspace/export?path=/Users/4106dc97-a963-48f0-a079-a578238959a6/created_by_lsql_eNRfgo1KKWzbiSfr.lvdash.json&direct_download=true&format=SOURCE
< 200 OK
< {
<   "datasets": [
<     {
<       "displayName": "counter",
<       "name": "counter",
<       "queryLines": [
<         "SELECT 10 AS count"
<       ]
<     }
<   ],
<   "pages": [
<     {
<       "displayName": "created_by_lsql_eNRfgo1KKWzbiSfr",
<       "layout": [
<         {
<           "position": {
<             "height": 3,
<             "width": 1,
<             "x": 0,
<             "y": 0
<           },
<           "widget": {
<             "name": "counter_widget",
<             "queries": [
<               {
<                 "name": "main_query",
<                 "query": {
<                   "datasetName": "counter",
<                   "disaggregated": true,
<                   "fields": [
<                     {
<                       "expression": "`count`",
<                       "name": "count"
<                     }
<                   ]
<                 }
<               }
<             ],
<             "spec": {
<               "encodings": {
<                 "value": "**REDACTED**"
<               },
<               "frame": {
<                 "description": "",
<                 "showDescription": false,
<                 "showTitle": false,
<                 "title": ""
<               },
<               "version": 2,
<               "widgetType": "counter"
<             }
<           }
<         }
<       ],
<       "name": "created_by_lsql_eNRfgo1KKWzbiSfr",
<       "pageType": "PAGE_TYPE_CANVAS"
<     }
<   ]
< }
04:52 DEBUG [databricks.sdk] DELETE /api/2.0/lakeview/dashboards/01f0570059c8197eb46194f4303c5b5b
< 200 OK
< {}
[gw5] linux -- Python 3.10.18 /home/runner/work/lsql/lsql/.venv/bin/python

Running from nightly #232

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions