Skip to content

Commit

Permalink
Release v0.14.0 (#329)
Browse files Browse the repository at this point in the history
* Added nightly tests run at 4:45am UTC
([#318](#318)). A new
nightly workflow has been added to the codebase, designed to automate a
series of jobs every day at 4:45am UTC on the `larger` environment. The
workflow includes permissions for writing id-tokens, accessing issues,
reading contents and pull-requests. It checks out the code with a full
fetch-depth, installs Python 3.10, and uses hatch 1.9.4. The key step in
this workflow is the execution of nightly tests using the
databrickslabs/sandbox/acceptance action, which creates issues if
necessary. The workflow utilizes several secrets, including VAULT_URI,
GITHUB_TOKEN, ARM_CLIENT_ID, and ARM_TENANT_ID, and sets the
TEST_NIGHTLY environment variable to true. Additionally, the workflow is
part of a concurrency group called "single-acceptance-job-per-repo",
ensuring that only one acceptance job runs at a time per repository.
* Bump codecov/codecov-action from 4 to 5
([#319](#319)). In this
version update, the Codecov GitHub Action has been upgraded from 4 to 5,
bringing improved functionality and new features. This new version
utilizes the Codecov Wrapper to encapsulate the CLI, enabling faster
updates. Additionally, an opt-out feature has been introduced for tokens
in public repositories, allowing contributors and other members to
upload coverage reports without requiring access to the Codecov token.
The upgrade also includes changes to the arguments: `file` is now
deprecated and replaced with `files`, and `plugin` is deprecated and
replaced with `plugins`. New arguments have been added, including
`binary`, `gcov_args`, `gcov_executable`, `gcov_ignore`, `gcov_include`,
`report_type`, `skip_validation`, and `swift_project`. Comprehensive
documentation on these changes can be found in the release notes and
changelog.
* Fixed `RuntimeBackend` exception handling
([#328](#328)). In this
release, we have made significant improvements to the exception handling
in the `RuntimeBackend` component, addressing issues reported in tickets
[#328](#328),
[#327](#327),
[#326](#326), and
[#325](#325). We have
updated the `execute` and `fetch` methods to handle exceptions more
gracefully and changed exception handling from catching `Exception` to
catching `BaseException` for more comprehensive error handling.
Additionally, we have updated the `pyproject.toml` file to use a newer
version of the `databricks-labs-pytester` package (0.2.1 to 0.5.0) which
may have contributed to the resolution of these issues. Furthermore, the
`test_backends.py` file has been updated to improve the readability and
user-friendliness of the test output for the functions testing if a
`NotFound`, `BadRequest`, or `Unknown` exception is raised when
executing and fetching statements. The
`test_runtime_backend_use_statements` function has also been updated to
print `PASSED` or `FAILED` instead of returning those values. These
changes enhance the robustness of the exception handling mechanism in
the `RuntimeBackend` class and update related unit tests.

Dependency updates:

* Bump codecov/codecov-action from 4 to 5
([#319](#319)).
  • Loading branch information
nfx authored Nov 15, 2024
1 parent 7ba1ca0 commit 383bb80
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Version changelog

## 0.14.0

* Added nightly tests run at 4:45am UTC ([#318](https://github.com/databrickslabs/lsql/issues/318)). A new nightly workflow has been added to the codebase, designed to automate a series of jobs every day at 4:45am UTC on the `larger` environment. The workflow includes permissions for writing id-tokens, accessing issues, reading contents and pull-requests. It checks out the code with a full fetch-depth, installs Python 3.10, and uses hatch 1.9.4. The key step in this workflow is the execution of nightly tests using the databrickslabs/sandbox/acceptance action, which creates issues if necessary. The workflow utilizes several secrets, including VAULT_URI, GITHUB_TOKEN, ARM_CLIENT_ID, and ARM_TENANT_ID, and sets the TEST_NIGHTLY environment variable to true. Additionally, the workflow is part of a concurrency group called "single-acceptance-job-per-repo", ensuring that only one acceptance job runs at a time per repository.
* Bump codecov/codecov-action from 4 to 5 ([#319](https://github.com/databrickslabs/lsql/issues/319)). In this version update, the Codecov GitHub Action has been upgraded from 4 to 5, bringing improved functionality and new features. This new version utilizes the Codecov Wrapper to encapsulate the CLI, enabling faster updates. Additionally, an opt-out feature has been introduced for tokens in public repositories, allowing contributors and other members to upload coverage reports without requiring access to the Codecov token. The upgrade also includes changes to the arguments: `file` is now deprecated and replaced with `files`, and `plugin` is deprecated and replaced with `plugins`. New arguments have been added, including `binary`, `gcov_args`, `gcov_executable`, `gcov_ignore`, `gcov_include`, `report_type`, `skip_validation`, and `swift_project`. Comprehensive documentation on these changes can be found in the release notes and changelog.
* Fixed `RuntimeBackend` exception handling ([#328](https://github.com/databrickslabs/lsql/issues/328)). In this release, we have made significant improvements to the exception handling in the `RuntimeBackend` component, addressing issues reported in tickets [#328](https://github.com/databrickslabs/lsql/issues/328), [#327](https://github.com/databrickslabs/lsql/issues/327), [#326](https://github.com/databrickslabs/lsql/issues/326), and [#325](https://github.com/databrickslabs/lsql/issues/325). We have updated the `execute` and `fetch` methods to handle exceptions more gracefully and changed exception handling from catching `Exception` to catching `BaseException` for more comprehensive error handling. Additionally, we have updated the `pyproject.toml` file to use a newer version of the `databricks-labs-pytester` package (0.2.1 to 0.5.0) which may have contributed to the resolution of these issues. Furthermore, the `test_backends.py` file has been updated to improve the readability and user-friendliness of the test output for the functions testing if a `NotFound`, `BadRequest`, or `Unknown` exception is raised when executing and fetching statements. The `test_runtime_backend_use_statements` function has also been updated to print `PASSED` or `FAILED` instead of returning those values. These changes enhance the robustness of the exception handling mechanism in the `RuntimeBackend` class and update related unit tests.

Dependency updates:

* Bump codecov/codecov-action from 4 to 5 ([#319](https://github.com/databrickslabs/lsql/pull/319)).

## 0.13.0

* Added `escape_name` function to escape individual SQL names and `escape_full_name` function to escape dot-separated full names ([#316](https://github.com/databrickslabs/lsql/issues/316)). Two new functions, `escape_name` and `escape_full_name`, have been added to the `databricks.labs.lsql.escapes` module for escaping SQL names. The `escape_name` function takes a single name as an input and returns it enclosed in backticks, while `escape_full_name` handles dot-separated full names by escaping each individual component. These functions have been ported from the `databrickslabs/ucx` repository and are designed to provide a consistent way to escape names and full names in SQL statements, improving the robustness of the system by preventing issues caused by unescaped special characters in SQL names. The test suite includes various cases, including single names, full names with different combinations of escaped and unescaped components, and special characters, with a specific focus on the scenario where the column name contains a period.
Expand Down
2 changes: 1 addition & 1 deletion src/databricks/labs/lsql/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.13.0"
__version__ = "0.14.0"

0 comments on commit 383bb80

Please sign in to comment.