test: various fixes to package testing#229
Merged
patrick-stephens merged 8 commits intomainfrom Mar 19, 2026
Merged
Conversation
Signed-off-by: Patrick Stephens <pat@telemetryforge.io>
Signed-off-by: Patrick Stephens <pat@telemetryforge.io>
Signed-off-by: Patrick Stephens <pat@telemetryforge.io>
Signed-off-by: Patrick Stephens <pat@telemetryforge.io>
Signed-off-by: Patrick Stephens <pat@telemetryforge.io>
Signed-off-by: Patrick Stephens <pat@telemetryforge.io>
There was a problem hiding this comment.
2 issues found across 7 files
Confidence score: 3/5
- There is a concrete reliability risk in
install.sh: without curl timeouts, the current retry loop can still block indefinitely before retries, which can leave installs hanging for users. - In
testing/bats/tests/integration/linux/integration-install-script.bats, using--connect-timeoutalone does not cover slow response bodies, so tests may miss the same hang condition once a connection is established. - This is a moderate, user-impacting timeout behavior issue (with high confidence), so merge risk is not low until total request timeouts are applied consistently.
- Pay close attention to
install.shandtesting/bats/tests/integration/linux/integration-install-script.bats- timeout handling should cover the full request lifecycle, not just connection setup.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="testing/bats/tests/integration/linux/integration-install-script.bats">
<violation number="1" location="testing/bats/tests/integration/linux/integration-install-script.bats:38">
P2: `--connect-timeout` only covers TCP connection setup here; it will not help when `/index.html` is slow to return after the connection is established. Use a total request timeout instead.</violation>
</file>
<file name="install.sh">
<violation number="1" location="install.sh:378">
P2: Add curl timeouts here; otherwise this retry loop can still hang forever before any retry happens.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
testing/bats/tests/integration/linux/integration-install-script.bats
Outdated
Show resolved
Hide resolved
Signed-off-by: Patrick Stephens <pat@telemetryforge.io>
Contributor
Author
|
@cubic-dev-ai please re-review |
@patrick-stephens I have started the AI code review. It will take a few minutes to complete. |
Signed-off-by: Patrick Stephens <pat@telemetryforge.io>
There was a problem hiding this comment.
1 issue found across 3 files (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".github/workflows/call-test-containers.yaml">
<violation number="1" location=".github/workflows/call-test-containers.yaml:90">
P2: The tag-only `if` condition prevents setting version env vars for non-tag runs, so container tests can validate against the wrong fallback version instead of `inputs.image-tag`.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
| shell: bash | ||
|
|
||
| - name: Ensure we use the right version during a release | ||
| if: startsWith(github.ref, 'refs/tags/v') |
There was a problem hiding this comment.
P2: The tag-only if condition prevents setting version env vars for non-tag runs, so container tests can validate against the wrong fallback version instead of inputs.image-tag.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/call-test-containers.yaml, line 90:
<comment>The tag-only `if` condition prevents setting version env vars for non-tag runs, so container tests can validate against the wrong fallback version instead of `inputs.image-tag`.</comment>
<file context>
@@ -88,6 +86,13 @@ jobs:
shell: bash
+ - name: Ensure we use the right version during a release
+ if: startsWith(github.ref, 'refs/tags/v')
+ run: |
+ echo "TELEMETRY_FORGE_AGENT_VERSION=${{ inputs.image-tag }}" >> $GITHUB_ENV
</file context>
Suggested change
| if: startsWith(github.ref, 'refs/tags/v') | |
| if: ${{ always() }} |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Resolves various test failures seen during recent builds and releases.
Summary by cubic
Stabilizes package and container tests by fixing version env propagation and installer retries, and corrects tag handling for PR builds. Also generates JSON schema artifacts from container images during build (non-blocking).
Bug Fixes
TELEMETRY_FORGE_AGENT_VERSION(and legacyFLUENTDO_AGENT_VERSION) from the image tag in the workflow, default version to tag in test runners, and fix tag usage for PR builds.Test Updates
yum -yq,apt-get -qqy).TELEMETRY_FORGE_AGENT_VERSIONandTELEMETRY_FORGE_AGENT_URLinto functional test containers.Written for commit 89f3891. Summary will update on new commits.