Fix bundle renderer tests on local machine#123
Conversation
|
Tag for build #30274 is 💻 For deploying this image using the dev scripts, run the following first: export MAIN_IMAGE_TAG='3.67.x-158-g2c8200cf07'📦 You can also generate an installation bundle with: docker run -i --rm stackrox/main:3.67.x-158-g2c8200cf07 central generate interactive > bundle.zip🕹️ A |
porridge
left a comment
There was a problem hiding this comment.
I still don't understand why this "test passed in CI but never locally"? Is it somehow related to the TEST_VERSIONS env var?
The test failed because the build timestamp and versions were not set. These are normally set at build time via ld-flags and are saved into global variables. |
Right, but what I'm missing is why they were set in CI (where you say this test passes) but not locally (where you say it fails), @SimonBaeumer ? |
@porridge they were set in a test which run previous to these tests which lead to this side effect. |
|
Ah, so the difference is that locally you were running just a single test, while in CI the side effects of other tests made it succeed? |
Simplified approach: 1. Generate report with Slack-format links directly in audit script - `[#123](url)` → `<url|#123>` - No conversion needed in posting script 2. Post as single message instead of multiple sections - Simpler code, easier to read in Slack - All content in one place with scroll 3. Removed awk link conversion logic - Not needed since report has Slack links natively - Simplified build_full_message to just concatenate content Changes: - audit-backport-prs.sh: Generate <url|text> format instead of [text](url) - post-backport-audit-to-slack.sh: Remove link conversion, post single message Partially generated with AI assistance.
Description
Due to side effects on setting the versions and buildtimestamps without restoring old versions this test passed in CI but never locally.
Created ROX-8768 for adding a restorer to the version.
Checklist
Evaluated and added CHANGELOG entry if requiredDetermined and documented upgrade stepsIf any of these don't apply, please comment below.
Testing Performed