You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In attempting to add a utm_source=codegate querystring to links generated to insight.stacklok.com for malicious packages, I was able to make changes that caused the integration tests to pass (e.g. Copilot User asks about a malicious package). But this did not result in the build package providing the new link format.
NOTE: [The issue with the utm_source not being added has been fixed](- #765) but this issue is to track a possible issue with the integration testing approach.
The updated copilot integration tests passed (the response https://www.insight.stacklok.com/report/pypi/invokehttp?utm_source=codegate) but when I built the container locally, it generates the warning about invokehttp, but the links don't contain the string.
CodeGate version: v0.1.13-25c2368-dev, so it seems like I'm building and running the right container.
In order to get the desired behavior in the built container, it seems that the generated insight link needed to be updated in output.py.
But, the integration tests passed without doing this (just by updating default.yaml to have the querystring added and changing the integraton test expectations, but the actual result in the codegate response wasn't correctly changed without adjusting output.py.
Describe the issue
In attempting to add a utm_source=codegate querystring to links generated to insight.stacklok.com for malicious packages, I was able to make changes that caused the integration tests to pass (e.g.
Copilot User asks about a malicious package
). But this did not result in the build package providing the new link format.NOTE: [The issue with the utm_source not being added has been fixed](- #765) but this issue is to track a possible issue with the integration testing approach.
The updated copilot integration tests passed (the response https://www.insight.stacklok.com/report/pypi/invokehttp?utm_source=codegate) but when I built the container locally, it generates the warning about invokehttp, but the links don't contain the string.
CodeGate version: v0.1.13-25c2368-dev, so it seems like I'm building and running the right container.
In order to get the desired behavior in the built container, it seems that the generated insight link needed to be updated in
output.py
.But, the integration tests passed without doing this (just by updating
default.yaml
to have the querystring added and changing the integraton test expectations, but the actual result in the codegate response wasn't correctly changed without adjustingoutput.py
.Related Issues
Steps to Reproduce
prompts/default.yaml
to change the format of the malicious package reporting exampleFor example:
copilot_malicious_package_question
test case to expect the new formatOperating System
MacOS (Arm)
IDE and Version
n/a
Extension and Version
n/a
Provider
OpenAI
Model
GPT-40
Codegate version
v0.1.13-25c2368-dev
Logs
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: