Skip to content

Conversation

ptiurin
Copy link
Collaborator

@ptiurin ptiurin commented Aug 21, 2023

Compatibility with Firebolt 2.0 and firebolt-sdk 1.x

@ptiurin ptiurin marked this pull request as ready for review August 30, 2023 15:57
@ptiurin
Copy link
Collaborator Author

ptiurin commented Aug 30, 2023

Integration tests passing

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

75.0% 75.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.14) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

Copy link
Collaborator

@stepansergeevitch stepansergeevitch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, a couple of comments

steps:
- name: Check out code
uses: actions/checkout@v2
with:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will happen if action is triggered automatically from a push to 0.x branch? Will inputs.branch have a correct value?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When empty it defaults to the "event" that triggered the run. In this case it will checkout 0.x branch.
https://github.com/actions/checkout#usage

connection = await_only(self.dbapi.connect(*arg, **kw)) # type: ignore[attr-defined] # noqa: F821,E501
# Synchronously establish a connection that can execute
# asynchronous queries later
conn_func = partial(self.dbapi.connect, *arg, **kw) # type: ignore[attr-defined] # noqa: F821,E501
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I believe we can just do self.dbapi.connect(*arg, **kw) instead of using partial

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my testing run accepts only an async function as a first parameter, not a coroutine object that results from self.dbapi.connect(*arg, **kw). It does accept args, but kwargs have to be passed as a partial, I'm afraid.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@ptiurin
Copy link
Collaborator Author

ptiurin commented Sep 2, 2023

Docs were merged so I'm merging this PR - firebolt-db/firebolt-db.github.io#170

@ptiurin ptiurin merged commit 4e943e4 into main Sep 2, 2023
@ptiurin ptiurin deleted the feat-identity branch September 2, 2023 16:14
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.

2 participants