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

fix: pull request action, needs build_taxonomies before running tests #9883

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

stephanegigandet
Copy link
Contributor

It looks like the nutrient_levels taxonomy has not already been generated when tests are run. It should work anyway but it fails for some reason.

e.g. https://github.com/openfoodfacts/openfoodfacts-server/actions/runs/8189813679/job/22395977705?pr=9854

Container po_off_test-memcached-1 Running
Could not load taxonomy: /mnt/podata/taxonomies/nutrient_levels.result.sto at /opt/product-opener/lib/ProductOpener/Tags.pm line 2507.
Compilation failed in require at tests/unit/additives_tags.t line 9.

This seems to happen only for the first test case, and only sometimes, maybe a race condition.

@stephanegigandet stephanegigandet requested a review from a team as a code owner March 7, 2024 15:29
@github-actions github-actions bot added the GitHub Actions Pull requests that update Github_actions code label Mar 7, 2024
@github-actions github-actions bot removed the GitHub Actions Pull requests that update Github_actions code label Mar 7, 2024
Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

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

I changed your PR to an approached that seems more robust & generic to me @stephanegigandet

Copy link

sonarcloud bot commented Mar 7, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@alexgarel alexgarel enabled auto-merge (squash) March 7, 2024 15:59
@alexgarel alexgarel merged commit 7cc9989 into main Mar 7, 2024
10 of 11 checks passed
@alexgarel alexgarel deleted the fix-pull-request-action branch March 7, 2024 16:06
alexgarel pushed a commit that referenced this pull request Mar 7, 2024
john-gom pushed a commit that referenced this pull request May 24, 2024
* fix: compile nutrients_level in build_lang

It looks like the nutrient_levels taxonomy has not already been generated when tests are run. It should work anyway but it fails for some reason. This seems to happen only for the first test case, and only sometimes, maybe a race condition.

---------
Co-authored-by: Alex Garel <[email protected]>
john-gom pushed a commit that referenced this pull request May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants