-
Notifications
You must be signed in to change notification settings - Fork 112
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
cicd: fix authenticate tests #1179
base: main
Are you sure you want to change the base?
Conversation
277b454
to
457fe8e
Compare
|
398db7f
to
265ed29
Compare
265ed29
to
003eef7
Compare
003eef7
to
bb92874
Compare
github action services do not provide api to change entrypoint. We need to switch to docker-compose to spin up docker container for auth tests.
bb92874
to
28317c1
Compare
build: | ||
timeout-minutes: 60 | ||
name: Run Authentication tests | ||
runs-on: ubuntu-latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❓ Why is the timeout now gone?
#[ignore] | ||
async fn custom_authentication() { | ||
setup_tracing(); | ||
let uri = std::env::var("SCYLLA_URI").unwrap_or_else(|_| "127.0.0.1:9042".to_string()); | ||
let uri = std::env::var("SCYLLA_URI").unwrap_or_else(|_| "172.43.0.2:9042".to_string()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 I don't think it's a good idea to adjust the code to our CI. Let's instead add the env override to the workflow (see my other comment).
- name: Run tests | ||
run: RUST_LOG=trace cargo test --verbose authenticate_superuser -- custom_authentication --ignored |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔧 Let's pass SCYLLA_URI=172.43.0.2
directly here, to the cargo test
invocation.
Github actions do not have API to override entrypoint, we have to switch to
docker-compose
to start container for auth tests.Pre-review checklist
I added relevant tests for new features and bug fixes.All commits compile, pass static checks and pass test.I have provided docstrings for the public items that I want to introduce.I have adjusted the documentation in./docs/source/
.I added appropriateFixes:
annotations to PR description.