-
Notifications
You must be signed in to change notification settings - Fork 82
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
Add SeaLights integration files and deps. Configure SonarCloud inclusions/exclusions #1533
Add SeaLights integration files and deps. Configure SonarCloud inclusions/exclusions #1533
Conversation
return int(dt_value.timestamp() * 1000) | ||
|
||
def extract_sl_endpoint(self): | ||
payload = jwt.decode(self.token, algorithms=["RS512"], options={"verify_signature": False}) |
Check failure
Code scanning / SonarCloud
JWT should be signed and verified
return int(dt_value.timestamp() * 1000) | ||
|
||
def extract_sl_endpoint(self): | ||
payload = jwt.decode(self.token, algorithms=["RS512"], options={"verify_signature": False}) |
Check failure
Code scanning / SonarCloud
JWT should be signed and verified
Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>
Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>
This was the error: Importing listener '/home/jenkins/workspace/odh/odh-smoke/ods-ci/ods_ci/utils/scripts/sealights/SLListener.py' failed: KeyError: 'PYTHONPATH' 14:01:58 Traceback (most recent call last): 14:01:58 File "/home/jenkins/workspace/odh/odh-smoke/ods-ci/ods_ci/utils/scripts/sealights/SLListener.py", line 8, in <module> 14:01:58 import opentelemetry.instrumentation.auto_instrumentation.sitecustomize 14:01:58 File "/home/build/.local/ods-ci/.venv/lib/python3.11/site-packages/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 44, in <module> 14:01:58 initialize() 14:01:58 File "/home/build/.local/ods-ci/.venv/lib/python3.11/site-packages/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 32, in initialize 14:01:58 environ["PYTHONPATH"], dirname(abspath(__file__)), pathsep 14:01:58 ~~~~~~~^^^^^^^^^^^^^^ 14:01:58 File "<frozen os>", line 679, in __getitem__ 14:01:58 PYTHONPATH: 14:01:58 /home/jenkins/workspace/odh/odh-smoke/ods-ci/ods_ci/utils/scripts/sealights 14:01:58 /home/build/.local/ods-ci/.venv/bin 14:01:58 /usr/lib64/python311.zip 14:01:58 /usr/lib64/python3.11 14:01:58 /usr/lib64/python3.11/lib-dynload 14:01:58 /home/build/.local/ods-ci/.venv/lib64/python3.11/site-packages 14:01:58 /home/build/.local/ods-ci/.venv/lib/python3.11/site-packages 14:01:58 /home/jenkins/workspace/odh/odh-smoke/ods-ci Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>
Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>
a5b5474
to
a24ae21
Compare
Robot Results
|
Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>
This reverts commit a24ae21.
Quality Gate passedIssues Measures |
lgtm, have you noticed if the listener is affecting the duration of the runs? Other than dashboard as you noted in the description |
…ions/exclusions (red-hat-data-services#1533) * Add Sealights integration Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com> * Increase timeout in Wait For RHODS Dashboard To Load Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com> * Modify SSListener.py to try fixing error when runnig tests in Jenkins This was the error: Importing listener '/home/jenkins/workspace/odh/odh-smoke/ods-ci/ods_ci/utils/scripts/sealights/SLListener.py' failed: KeyError: 'PYTHONPATH' 14:01:58 Traceback (most recent call last): 14:01:58 File "/home/jenkins/workspace/odh/odh-smoke/ods-ci/ods_ci/utils/scripts/sealights/SLListener.py", line 8, in <module> 14:01:58 import opentelemetry.instrumentation.auto_instrumentation.sitecustomize 14:01:58 File "/home/build/.local/ods-ci/.venv/lib/python3.11/site-packages/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 44, in <module> 14:01:58 initialize() 14:01:58 File "/home/build/.local/ods-ci/.venv/lib/python3.11/site-packages/opentelemetry/instrumentation/auto_instrumentation/sitecustomize.py", line 32, in initialize 14:01:58 environ["PYTHONPATH"], dirname(abspath(__file__)), pathsep 14:01:58 ~~~~~~~^^^^^^^^^^^^^^ 14:01:58 File "<frozen os>", line 679, in __getitem__ 14:01:58 PYTHONPATH: 14:01:58 /home/jenkins/workspace/odh/odh-smoke/ods-ci/ods_ci/utils/scripts/sealights 14:01:58 /home/build/.local/ods-ci/.venv/bin 14:01:58 /usr/lib64/python311.zip 14:01:58 /usr/lib64/python3.11 14:01:58 /usr/lib64/python3.11/lib-dynload 14:01:58 /home/build/.local/ods-ci/.venv/lib64/python3.11/site-packages 14:01:58 /home/build/.local/ods-ci/.venv/lib/python3.11/site-packages 14:01:58 /home/jenkins/workspace/odh/odh-smoke/ods-ci Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com> * Enable jwt signature verification (recommended by SonarCloud) Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com> * Configure SonarCloud include and exclude folders Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com> * Revert "Enable jwt signature verification (recommended by SonarCloud)" This reverts commit a24ae21. --------- Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com> Co-authored-by: Berto D'Attoma <88311595+bdattoma@users.noreply.github.com>
Wait For RHODS Dashboard To Load
, as the Sealights agent can slow down a little the Dashboard