-
-
Notifications
You must be signed in to change notification settings - Fork 42
feat: Add Context Observer and Log Analysis for build failures #89
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
Open
Yugansh5013
wants to merge
18
commits into
jenkinsci:main
Choose a base branch
from
Yugansh5013:feature/context-aware-UI
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+627
−91
Open
Changes from 12 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
84ac2d2
feat: Add Context Observer and Log Analysis for build failures
Yugansh5013 836e025
resolved conflict
Yugansh5013 7eaf7ad
resolved conflict
Yugansh5013 72ae9fb
resolved conflict
Yugansh5013 f760dbe
feat: Add log sanitizer and optimize vector search error extraction
Yugansh5013 77c44bb
fixed build error
Yugansh5013 6948cc8
fixed build error
Yugansh5013 f2e1ec2
fixed build error
Yugansh5013 db329db
created dynamic waiting messages
Yugansh5013 f56372d
fix build errors
Yugansh5013 49e1d19
refactor(frontend): separate loading logic and extract LoadingDots co…
Yugansh5013 8bb7709
Merge branch 'main' of https://github.com/Yugansh5013/resources-ai-ch…
Yugansh5013 40fa6e3
fix(Messages): update loading message condition to use isLoading prop
Yugansh5013 6164fa2
fix(Messages): update loading message condition to use isLoading prop
Yugansh5013 74ec5d3
Merge branch 'feature/context-aware-UI' of https://github.com/Yugansh…
Yugansh5013 4546eb8
Merge branch 'main' into feature/context-aware-UI
Yugansh5013 25d6619
Merge branch 'main' into feature/context-aware-UI
berviantoleo 9f4da7f
Merge branch 'main' into feature/context-aware-UI
Yugansh5013 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| """Module for sanitizing logs by redacting sensitive information.""" | ||
| import re | ||
|
|
||
| def sanitize_logs(log_text: str) -> str: | ||
| """ | ||
| Scans the input text for common secret patterns (API keys, passwords, tokens) | ||
| and replaces them with [REDACTED]. | ||
| """ | ||
| patterns = [ | ||
| # Generic "password=" or "pwd=" patterns (case insensitive) | ||
| ( | ||
| r'(?i)(password|passwd|pwd|secret|access_token|api_key|client_secret)' | ||
| r'\s*[:=]\s*([^\s]+)', | ||
| r'\1=[REDACTED]' | ||
| ), | ||
|
|
||
| # AWS Access Key ID (AKI...) | ||
| (r'(?<![A-Z0-9])[A-Z0-9]{20}(?![A-Z0-9])', r'[REDACTED_AWS_KEY]'), | ||
|
|
||
| # Generic Bearer Token | ||
| (r'(?i)(Bearer)\s+[a-zA-Z0-9\-\._~+/]+=*', r'\1 [REDACTED_TOKEN]'), | ||
|
|
||
| # GitHub Tokens (ghp_...) | ||
| (r'ghp_[a-zA-Z0-9]{36}', r'[REDACTED_GITHUB_TOKEN]'), | ||
|
|
||
| # Private Key Blocks | ||
| (r'-----BEGIN [A-Z]+ PRIVATE KEY-----.*?-----END [A-Z]+ PRIVATE KEY-----', | ||
| r'[REDACTED_PRIVATE_KEY]' | ||
| ), | ||
|
|
||
| # Docker Login Flags (-p password) | ||
| (r'(docker\s+login.*?-p\s+)([^\s]+)', r'\1[REDACTED]') | ||
| ] | ||
|
|
||
| sanitized_text = log_text | ||
| for pattern, replacement in patterns: | ||
| sanitized_text = re.sub(pattern, replacement, sanitized_text, flags=re.DOTALL) | ||
|
|
||
| return sanitized_text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.