-
Notifications
You must be signed in to change notification settings - Fork 49
✨ Incident Infrastructure Improvements #232
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
Changes from 29 commits
44cdcbb
9a0bf2d
dfafed7
6514526
6adf227
15a42f7
f2cb4c5
8e7c84f
22bf886
c68bd9c
f93e100
2c89c9a
4a3be59
ab9f9f1
c8eafad
90a2cd1
40dea4c
5f6a5e2
530b397
92f6962
4ffe3fe
743734b
46fe7ca
6ec4b14
70353c4
5b1168d
4da406f
035dfd5
9bfb7be
ba3423d
053a29e
7622f53
040c0a2
e1888eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
assert_used: | ||
skips: | ||
- "*/kai-service/tests/**.py" | ||
- "**/test_*.py" | ||
- "**/*_test.py" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,21 +33,10 @@ Source file contents: | |
|
||
{% for incident in incidents %} | ||
### incident {{ loop.index0 }} | ||
incident to fix: "{{ incident.analysis_message }}" | ||
Line number: {{ incident.analysis_line_number }} | ||
{% if incident.solved_example_diff is defined %} | ||
Solved example: | ||
```diff | ||
{{ incident.solved_example_diff }} | ||
```{# {% elif incident.solved_example_file is defined %} | ||
Solved example before changes: | ||
```{{ incident.src_file_language }} | ||
{{ incident.solved_example_file.before }} | ||
``` | ||
Solved example after changes: | ||
```{{ incident.src_file_language }} | ||
{{ incident.solved_example_file.after }} | ||
``` #} | ||
incident to fix: "{{ incident.message }}" | ||
Line number: {{ incident.line_number }} | ||
{% if incident.solution_str is defined %} | ||
{{ incident.solution_str }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there still a way for users to override the templates for the solutions? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if we want to just pass variables in from the solution handler to the normal template. Could we declare what variables are declared by a handler and what variables are required for a template so that we can fail on start with an invalid config? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think I understand.
|
||
{% endif %} | ||
{% endfor %} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Solution before changes: | ||
``` | ||
{{ solution.original_code }} | ||
``` | ||
|
||
Solution after changes: | ||
``` | ||
{{ solution.updated_code }} | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Solution diff: | ||
```diff | ||
{{ solution.file_diff }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{% if model_provider.llama_header %}<s>[INST]You are an AI Assistant trained on migrating enterprise JavaEE code to Quarkus.<<SYS>>{% endif %} | ||
|
||
I will give you an example of a JavaEE file that has been migrated to Quarkus. | ||
|
||
You will need to reason through the changes required to update the JavaEE file to Quarkus. | ||
|
||
You will then provide an step-by-step explanation of the changes required so that someone could recreate it in a similar situtaion. | ||
|
||
# Input information | ||
|
||
## Input File | ||
|
||
File name: "{{ src_file_name }}" | ||
Source file contents: | ||
```{{ src_file_language }} | ||
{{ src_file_contents }} | ||
``` | ||
|
||
## Incident | ||
|
||
Incident that was fixed: "{{ incident.analysis_message }}" | ||
Line number: {{ incident.line_number }} | ||
|
||
## Solution | ||
|
||
File name: "{{ sln_file_name }}" | ||
Source file contents: | ||
```{{ sln_file_language }} | ||
{{ sln_file_contents }} | ||
``` | ||
|
||
# Output Instructions | ||
Structure your output in Markdown format such as: | ||
|
||
## Reasoning | ||
Write the step by step reasoning in this markdown section. If you are unsure of a step or reasoning, clearly state you are unsure and why. | ||
|
||
## Additional Information (optional) | ||
|
||
If you have any additional details or steps that need to be performed, put it here. | ||
|
||
{% if model_provider.llama_header %}[/INST]{% endif %} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Summary of changes for solution: | ||
|
||
{{ solution.llm_summary }} |
Uh oh!
There was an error while loading. Please reload this page.