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

make tests work with new indexes and new credentials #341

Conversation

randytpierce
Copy link
Contributor

We need to cordinate this with changing the credentials files on adb-cb1, and on ascend-test2. There is an example of the proper credentials on adb-cb1 in /home/amb-verif/credentials

@randytpierce randytpierce self-assigned this Mar 1, 2024
@randytpierce randytpierce linked an issue Mar 1, 2024 that may be closed by this pull request
Copy link
Contributor

@ian-noaa ian-noaa left a comment

Choose a reason for hiding this comment

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

Generally looks good. Though the .env files should be removed & .gitignore file updated.

Otherwise, I was curious if we need to add some validation that the cb_credentials["host"] variable has the couchbase URI prefix.

.env-capella Outdated Show resolved Hide resolved
.env-cb1 Outdated Show resolved Hide resolved
src/vxingest/builder_common/ingest_manager.py Show resolved Hide resolved
@randytpierce
Copy link
Contributor Author

randytpierce commented Mar 1, 2024 via email

@randytpierce
Copy link
Contributor Author

randytpierce commented Mar 1, 2024 via email

Copy link
Contributor

@ian-noaa ian-noaa left a comment

Choose a reason for hiding this comment

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

Thanks for removing the .env's!

I agree that it'd be inappropriate to check for a specific hostname. I was thinking it may be helpful to check for the presence of the couchbase:// or couchbases:// prefix in the host field in the config. My understanding is that the host field now requires those prefixes where it didn't before. E.g.

An old config like:

host: "some.host.com"

Now needs to be:

host: "couchbase://some.host.com"

Or:

host: "couchbases://some.host.com"

I could see connection failures being tricky to understand otherwise if the Couchbase SDK doesn't point out that you needed the protocol in addition to the hostname. I don't think this is a requirement for this PR though so feel free to merge and we can put it in another issue if we decide it's necessary. Mostly it just seemed like a nice way to get a better error message.

@ian-noaa
Copy link
Contributor

ian-noaa commented Mar 1, 2024

Actually... either way - it'd be good to update the README with a correct example for the $HOME/credentials file. The current one is now misleading. https://github.com/NOAA-GSL/VxIngest?tab=readme-ov-file#usage

@randytpierce
Copy link
Contributor Author

randytpierce commented Mar 1, 2024 via email

@randytpierce
Copy link
Contributor Author

randytpierce commented Mar 1, 2024 via email

Copy link

github-actions bot commented Mar 1, 2024

Code Coverage

Package Line Rate Branch Rate Health
vxingest 33% 38%
vxingest.builder_common 27% 15%
vxingest.ctc_to_cb 12% 1%
vxingest.grib2_to_cb 13% 1%
vxingest.netcdf_to_cb 13% 1%
vxingest.partial_sums_to_cb 12% 1%
vxingest.utilities 30% 32%
Summary 16% (490 / 3033) 6% (40 / 712)

@ian-noaa
Copy link
Contributor

ian-noaa commented Mar 1, 2024

Gotcha. Thanks!

@randytpierce randytpierce merged commit 5d72b83 into main Mar 1, 2024
7 checks passed
@randytpierce randytpierce deleted the 340-make-sure-test-cases-work-against-capella-and-record-the-results branch March 1, 2024 18:55
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.

Make sure test cases work against capella and record the results
3 participants