-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add Application Insights for OTEL tracing and uat->staging rename #68
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
8eef6e1
refactor: rename UAT environment to staging
JustAGhosT 901509d
refactor: change environment validation from "uat" to "staging"
JustAGhosT 3945195
refactor(infra): replace "uat" with "staging" in environment validation
JustAGhosT 8f6c24a
refactor: rename UAT environment to staging
JustAGhosT 4f315b2
feat: add Application Insights for OTEL tracing and complete uat->sta…
JustAGhosT eb07474
fix: address PR review comments - terminology consistency
JustAGhosT 9d5b99b
docs: add SLM architecture and guides documentation
JustAGhosT cab0205
docs: add architecture documentation for all systems and SLM manageme…
JustAGhosT ef8619a
docs: update architecture docs with detailed SLM implementation patterns
JustAGhosT c7d997a
I'll analyze this pull request which reorganizes and expands the arch…
JustAGhosT 4c5e506
ci: add reusable deploy-environment workflow
JustAGhosT 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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
Does GitHub Actions allowenvironment:on a job that calls a reusable workflow viauses:? If not, what is the documented way to bind the called job todev,staging, orprod?💡 Result:
No. A job that calls a reusable workflow via
jobs.<job_id>.uses:can only use a limited set of keywords, andenvironmentis not one of them (soenvironment:on the calling job is not supported). [1]Documented way to bind to
dev/staging/prod:dev/stage/prod). [2]environment:inside the reusable workflow’s job, using that input (the environment name can be an expression and can use theinputscontext). [3]workflow_call(it doesn’t supportenvironment), so the environment needs to be selected in the called workflow’s job. [2]Example:
Caller:
[2]
Reusable workflow (
deploy.yml):[3]
Sources: GitHub Docs on reusable-workflow keyword limits [1], reusable workflows + environment-secret note + matrix example [2], and workflow syntax for
jobs.<job_id>.environment(name can useinputs) [3].🏁 Script executed:
Repository: phoenixvc/ai-gateway
Length of output: 2993
Remove
environment:from all three reusable-workflow caller jobs.Jobs that call a reusable workflow via
uses:cannot use theenvironment:key. Currently,deploy-dev,deploy-staging, anddeploy-prodall specifyenvironment:at the job level alongsideuses:, which violates GitHub Actions job schema. Move environment selection into the called workflow (deploy-environment.yaml) by settingenvironment:there with the input value (e.g.,environment: ${{ inputs.env_name }}). The caller jobs already pass the environment name correctly viaenv_nameinput and only need the invalidenvironment:key removed.🤖 Prompt for AI Agents