Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escape special characters +-&|!(){}[]^"~*?:\ - e.g. \+ \* \!
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
 
Answered
Q2 build pipeline is failing

The Q2 pipeline is having trouble building my git branch.
Here's some background info: 1. I'm using shared sandbox environment 2. q2 sdk version is 2.209 3. the code branched off master branch. It didn't have build issue before. 4. under my new branch, the modified code is not the section that the pipeline is complaining about. The pipeline is complaining about package version mismatch for an extension under my branch that was never modified. 5. here's the summary of error message from pipeline(I removed the company specific info from the error message):


$ q2 check
FAIL: Unable to import module [module-xxx] due to an error
FAIL: Traceback (most recent call last):
File "/builds/Q2Antilles/companyname/companyname/.env/lib/python3.11/site-packages/q2_sdk/entrypoints/check_deployable.py", line 526, in _import_module
module = import_module(import_str)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/builds/Q2Antilles/companyname/companyname/module-xxx/urls.py", line 2, in <module>
from .extension import LVSamlHandler
File "/builds/Q2Antilles/companyname/companyname/module-xxx/extension.py", line 12, in <module>
from . import create_signed_encrypted_saml
File "/builds/Q2Antilles/companyname/companyname/module-xxx/create_signed_encrypted_saml.py", line 2, in <module>
from . import encrypt_assertion
File "/builds/Q2Antilles/companyname/companyname/module-xxx/encrypt_assertion.py", line 2, in <module>
import xmlsec
xmlsec.InternalError: (-1, 'lxml & xmlsec libxml2 library version mismatch')


Q2 check passed in shared sandbox environment. 

Does anyone have encountered similar build issue? if yes,  how can it be resolved?
Appreciate your help.

James 
Posted 2 years ago
Votes Newest

Answers


Hello,

This generally happens if requirements.txt does not match what you have installed locally in pip install. This can be checked by deleting and rebuilding your python virtual environment off of requirements.txt.

-Trey

Posted 2 years ago
Trey Teter
489 × 4 Administrator
99 Views
1 Answer
2 years ago
2 years ago