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

Release v0.8.3 #145

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Release v0.8.3 #145

merged 1 commit into from
Sep 13, 2024

Conversation

nfx
Copy link
Collaborator

@nfx nfx commented Sep 13, 2024

  • add missing stat() methods to DBFSPath and WorkspacePath (#144). The stat() method has been added to both DBFSPath and WorkspacePath classes, addressing issues #142 and #143. This method, which adheres to the Posix standard, returns file status in the os.stat_result format, providing access to various metadata attributes such as file size, last modification time, and creation time. By incorporating this method, developers can now obtain essential file information for Databricks File System (DBFS) and Databricks Workspace paths when working with these classes. The change includes a new test case for stat() in the test_paths.py file to ensure the correctness of the method for both classes.

* add missing stat() methods to DBFSPath and WorkspacePath ([#144](#144)). The `stat()` method has been added to both `DBFSPath` and `WorkspacePath` classes, addressing issues [#142](#142) and [#143](#143). This method, which adheres to the Posix standard, returns file status in the `os.stat_result` format, providing access to various metadata attributes such as file size, last modification time, and creation time. By incorporating this method, developers can now obtain essential file information for Databricks File System (DBFS) and Databricks Workspace paths when working with these classes. The change includes a new test case for `stat()` in the `test_paths.py` file to ensure the correctness of the method for both classes.
@nfx nfx merged commit 2bfbf18 into main Sep 13, 2024
3 of 5 checks passed
@nfx nfx deleted the prepare/0.8.3 branch September 13, 2024 17:13
Copy link

❌ 38/40 passed, 2 failed, 1m50s total

❌ test_detect_global: AttributeError: 'PermissionDenied' object has no attribute 'message' (1.668s)
AttributeError: 'PermissionDenied' object has no attribute 'message'
17:14 DEBUG [databricks.sdk] Loaded from environment
17:14 DEBUG [databricks.sdk] Ignoring pat auth, because metadata-service is preferred
17:14 DEBUG [databricks.sdk] Ignoring basic auth, because metadata-service is preferred
17:14 DEBUG [databricks.sdk] Attempting to configure auth: metadata-service
17:14 INFO [databricks.sdk] Using Databricks Metadata Service authentication
[gw1] linux -- Python 3.10.14 /home/runner/work/blueprint/blueprint/.venv/bin/python
17:14 DEBUG [databricks.sdk] Loaded from environment
17:14 DEBUG [databricks.sdk] Ignoring pat auth, because metadata-service is preferred
17:14 DEBUG [databricks.sdk] Ignoring basic auth, because metadata-service is preferred
17:14 DEBUG [databricks.sdk] Attempting to configure auth: metadata-service
17:14 INFO [databricks.sdk] Using Databricks Metadata Service authentication
17:14 DEBUG [databricks.labs.blueprint.installation] Uploading: /Applications/AcfO/some
17:14 DEBUG [databricks.sdk] POST /api/2.0/workspace/import
> [raw stream]
< 404 Not Found
< {
<   "error_code": "RESOURCE_DOES_NOT_EXIST",
<   "message": "The parent folder (/Applications/AcfO) does not exist."
< }
17:14 DEBUG [databricks.labs.blueprint.installation] Creating missing folders: /Applications/AcfO
17:14 DEBUG [databricks.sdk] POST /api/2.0/workspace/mkdirs
> {
>   "path": "/Applications/AcfO"
> }
< 403 Forbidden
< {
<   "error_code": "PERMISSION_DENIED",
<   "message": "4106dc97-a963-48f0-a079-a578238959a6 does not have View permissions on 0. Please contact the own... (34 more bytes)"
< }
17:14 DEBUG [databricks.sdk] Loaded from environment
17:14 DEBUG [databricks.sdk] Ignoring pat auth, because metadata-service is preferred
17:14 DEBUG [databricks.sdk] Ignoring basic auth, because metadata-service is preferred
17:14 DEBUG [databricks.sdk] Attempting to configure auth: metadata-service
17:14 INFO [databricks.sdk] Using Databricks Metadata Service authentication
17:14 DEBUG [databricks.labs.blueprint.installation] Uploading: /Applications/AcfO/some
17:14 DEBUG [databricks.sdk] POST /api/2.0/workspace/import
> [raw stream]
< 404 Not Found
< {
<   "error_code": "RESOURCE_DOES_NOT_EXIST",
<   "message": "The parent folder (/Applications/AcfO) does not exist."
< }
17:14 DEBUG [databricks.labs.blueprint.installation] Creating missing folders: /Applications/AcfO
17:14 DEBUG [databricks.sdk] POST /api/2.0/workspace/mkdirs
> {
>   "path": "/Applications/AcfO"
> }
< 403 Forbidden
< {
<   "error_code": "PERMISSION_DENIED",
<   "message": "4106dc97-a963-48f0-a079-a578238959a6 does not have View permissions on 0. Please contact the own... (34 more bytes)"
< }
[gw1] linux -- Python 3.10.14 /home/runner/work/blueprint/blueprint/.venv/bin/python
❌ test_existing_installations_are_detected: AttributeError: 'PermissionDenied' object has no attribute 'message' (1.108s)
AttributeError: 'PermissionDenied' object has no attribute 'message'
17:14 DEBUG [databricks.sdk] Loaded from environment
17:14 DEBUG [databricks.sdk] Ignoring pat auth, because metadata-service is preferred
17:14 DEBUG [databricks.sdk] Ignoring basic auth, because metadata-service is preferred
17:14 DEBUG [databricks.sdk] Attempting to configure auth: metadata-service
17:14 INFO [databricks.sdk] Using Databricks Metadata Service authentication
[gw1] linux -- Python 3.10.14 /home/runner/work/blueprint/blueprint/.venv/bin/python
17:14 DEBUG [databricks.sdk] Loaded from environment
17:14 DEBUG [databricks.sdk] Ignoring pat auth, because metadata-service is preferred
17:14 DEBUG [databricks.sdk] Ignoring basic auth, because metadata-service is preferred
17:14 DEBUG [databricks.sdk] Attempting to configure auth: metadata-service
17:14 INFO [databricks.sdk] Using Databricks Metadata Service authentication
17:14 DEBUG [databricks.labs.blueprint.installation] Uploading: /Applications/kJ33/some
17:14 DEBUG [databricks.sdk] POST /api/2.0/workspace/import
> [raw stream]
< 404 Not Found
< {
<   "error_code": "RESOURCE_DOES_NOT_EXIST",
<   "message": "The parent folder (/Applications/kJ33) does not exist."
< }
17:14 DEBUG [databricks.labs.blueprint.installation] Creating missing folders: /Applications/kJ33
17:14 DEBUG [databricks.sdk] POST /api/2.0/workspace/mkdirs
> {
>   "path": "/Applications/kJ33"
> }
< 403 Forbidden
< {
<   "error_code": "PERMISSION_DENIED",
<   "message": "4106dc97-a963-48f0-a079-a578238959a6 does not have View permissions on 0. Please contact the own... (34 more bytes)"
< }
17:14 DEBUG [databricks.sdk] Loaded from environment
17:14 DEBUG [databricks.sdk] Ignoring pat auth, because metadata-service is preferred
17:14 DEBUG [databricks.sdk] Ignoring basic auth, because metadata-service is preferred
17:14 DEBUG [databricks.sdk] Attempting to configure auth: metadata-service
17:14 INFO [databricks.sdk] Using Databricks Metadata Service authentication
17:14 DEBUG [databricks.labs.blueprint.installation] Uploading: /Applications/kJ33/some
17:14 DEBUG [databricks.sdk] POST /api/2.0/workspace/import
> [raw stream]
< 404 Not Found
< {
<   "error_code": "RESOURCE_DOES_NOT_EXIST",
<   "message": "The parent folder (/Applications/kJ33) does not exist."
< }
17:14 DEBUG [databricks.labs.blueprint.installation] Creating missing folders: /Applications/kJ33
17:14 DEBUG [databricks.sdk] POST /api/2.0/workspace/mkdirs
> {
>   "path": "/Applications/kJ33"
> }
< 403 Forbidden
< {
<   "error_code": "PERMISSION_DENIED",
<   "message": "4106dc97-a963-48f0-a079-a578238959a6 does not have View permissions on 0. Please contact the own... (34 more bytes)"
< }
[gw1] linux -- Python 3.10.14 /home/runner/work/blueprint/blueprint/.venv/bin/python

Running from acceptance #212

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.

1 participant