Skip to content

Tweak NPM (some improvements)#29

Merged
kravets-levko merged 2 commits into
databricks:masterfrom
kravets-levko:tweak-npm-2
Jul 12, 2022
Merged

Tweak NPM (some improvements)#29
kravets-levko merged 2 commits into
databricks:masterfrom
kravets-levko:tweak-npm-2

Conversation

@kravets-levko
Copy link
Copy Markdown
Contributor

Slightly improve #28

@kravets-levko kravets-levko marked this pull request as ready for review July 12, 2022 22:17
@kravets-levko kravets-levko changed the title Tweak NPM Tweak NPM (some improvements) Jul 12, 2022
- name: Run unit tests
run: |
npm ci
npm run build
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

for running the tests, don't we need to build the package to ensure the files are generated?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

prepare script is executed when you:

  1. run npm install or npm ci in order to prepare package itself (but it doesn't when you install package into another project via npm install <package-name>)
  2. before npm pack and npm publish

So after npm ci it will be completely ready for use

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Also I checked CI - unit tests are still passing (as well as e2e are running but fail with connection error), which basically confirms that it works 🙂

Copy link
Copy Markdown
Contributor

@moderakh moderakh Jul 12, 2022

Choose a reason for hiding this comment

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

Thanks @kravets-levko for the explanation.

one other question for you, not directly related to this PR though, as this has been failing for a while.
why is the second CI failing?
Screen Shot 2022-07-12 at 3 27 34 PM

Copy link
Copy Markdown
Contributor Author

@kravets-levko kravets-levko Jul 12, 2022

Choose a reason for hiding this comment

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

It needs credentials which are passed through repository secrets. But Github does not pass secrets to PRs from forks (there are security reasons). Therefore it doesn't pass on such external PRs, but will pass on PRs within the repo and on master. Currently we're trying to find some solution for this

@moderakh moderakh self-requested a review July 12, 2022 22:25
Copy link
Copy Markdown
Contributor

@moderakh moderakh left a comment

Choose a reason for hiding this comment

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

LGTM. thanks @kravets-levko

@kravets-levko kravets-levko merged commit 80879bd into databricks:master Jul 12, 2022
@kravets-levko kravets-levko deleted the tweak-npm-2 branch July 12, 2022 22:50
msrathore-db added a commit that referenced this pull request May 17, 2026
Rust source changes (native/sea/src/connection.rs + statement.rs) deferred to kernel repo PR #29 (kernel-napi-statement-validity) since napi/src now lives in databricks-sql-kernel/napi/.

SeaOperationBackend.ts conflict resolved using integration commit 3da7aa7 (combining sea-results fetch pipeline with sea-operation lifecycle helpers).
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