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

cicd: fix authenticate tests #1179

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

dkropachev
Copy link
Collaborator

@dkropachev dkropachev commented Jan 23, 2025

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 have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • I added relevant tests for new features and bug fixes.
  • All commits compile, pass static checks and pass test.
  • PR description sums up the changes and reasons why they should be introduced.
  • I have provided docstrings for the public items that I want to introduce.
  • I have adjusted the documentation in ./docs/source/.
  • I added appropriate Fixes: annotations to PR description.

@dkropachev dkropachev force-pushed the dk/fix-authenticate_test branch from 277b454 to 457fe8e Compare January 23, 2025 17:12
Copy link

github-actions bot commented Jan 23, 2025

cargo semver-checks found no API-breaking changes in this PR! 🎉🥳
Checked commit: 28317c1

@dkropachev dkropachev force-pushed the dk/fix-authenticate_test branch 13 times, most recently from 398db7f to 265ed29 Compare January 24, 2025 06:31
@dkropachev dkropachev marked this pull request as ready for review January 24, 2025 06:31
@dkropachev dkropachev force-pushed the dk/fix-authenticate_test branch from 265ed29 to 003eef7 Compare January 24, 2025 06:47
@dkropachev dkropachev force-pushed the dk/fix-authenticate_test branch from 003eef7 to bb92874 Compare January 24, 2025 16:42
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.
@dkropachev dkropachev force-pushed the dk/fix-authenticate_test branch from bb92874 to 28317c1 Compare January 24, 2025 16:45
Comment on lines 19 to 21
build:
timeout-minutes: 60
name: Run Authentication tests
runs-on: ubuntu-latest
Copy link
Collaborator

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?

Comment on lines 64 to +67
#[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());
Copy link
Collaborator

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).

Comment on lines 32 to 33
- name: Run tests
run: RUST_LOG=trace cargo test --verbose authenticate_superuser -- custom_authentication --ignored
Copy link
Collaborator

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.

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.

3 participants