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

Update workflow to use elasticsearch with raudikko #356

Merged
merged 4 commits into from
Apr 5, 2023

Conversation

voneiden
Copy link
Contributor

@voneiden voneiden commented Apr 4, 2023

  • Workflow updated to support elasticsearch with raudikko (using docker compose)
  • Pytest configuration updated to use a test_settings.py file and override the test index names
  • Made conditional voikko tests as non-conditional tests. Rationale is that I'd rather have tests fail than be skipped.

@codecov-commenter
Copy link

codecov-commenter commented Apr 4, 2023

Codecov Report

Merging #356 (8112d0b) into main (13a3248) will increase coverage by 0.40%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #356      +/-   ##
==========================================
+ Coverage   93.91%   94.32%   +0.40%     
==========================================
  Files         151      152       +1     
  Lines        5509     5514       +5     
==========================================
+ Hits         5174     5201      +27     
+ Misses        335      313      -22     
Impacted Files Coverage Δ
helerm/test_settings.py 100.00% <100.00%> (ø)
search_indices/tests/conftest.py 93.33% <100.00%> (-1.12%) ⬇️
search_indices/tests/test_elastic_api.py 100.00% <100.00%> (+27.90%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@voneiden voneiden force-pushed the tied-76-raudikko-tweaks branch 2 times, most recently from 02f7552 to 02050b2 Compare April 4, 2023 11:33
@sonarcloud
Copy link

sonarcloud bot commented Apr 4, 2023

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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@voneiden voneiden marked this pull request as ready for review April 4, 2023 12:15
@@ -21,9 +21,7 @@ def test_classification_search_exact(user_api_client, classification):


@pytest.mark.django_db
def test_classification_search_fuzzy1(user_api_client, es_connection, classification):
if "voikko" not in str(es_connection.indices.get_settings()):
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch. 👍

Copy link
Contributor

@charn charn left a comment

Choose a reason for hiding this comment

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

LGTM! 👍 :shipit:

Copy link
Contributor

@danipran danipran left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@voneiden voneiden merged commit f40b364 into main Apr 5, 2023
@voneiden voneiden deleted the tied-76-raudikko-tweaks branch April 5, 2023 12:11
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.

4 participants