-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Building orig-edivisive from scratch #79283
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
base: main
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -300,23 +300,25 @@ cp *.csv *.xml *.json *.txt *.html "${ARTIFACT_DIR}/" 2>/dev/null || true | |
|
|
||
| # Experimental: run orion with original e-divisive binary (safe block, never breaks main execution) | ||
| ( | ||
| EXP_DIR="${ARTIFACT_DIR}/orion-original-edivisive" | ||
| EXP_DIR="/tmp/orion-original-edivisive" | ||
| mkdir -p "$EXP_DIR" | ||
| EXP_BINARY="/tmp/orion-original-edivisive" | ||
| pushd "$EXP_DIR" | ||
| git clone -q --branch orig-edivisive-exp $ORION_REPO --depth 1 | ||
| pushd orion | ||
| pip install -q -r requirements.txt | ||
| pip install -q . | ||
|
|
||
| echo "Downloading experimental orion binary..." | ||
| if ! curl -fsSL "https://github.com/cloud-bulldozer/orion/releases/download/orig-edivisive-exp/orion-amd64" -o "$EXP_BINARY"; then | ||
| echo "Failed to download experimental orion binary, skipping." | ||
| exit 0 | ||
| fi | ||
| chmod +x "$EXP_BINARY" | ||
|
|
||
| echo "Running experimental orion (original e-divisive)..." | ||
| "$EXP_BINARY" --node-count ${IGNORE_JOB_ITERATIONS} --config ${ORION_CONFIG} ${EXTRA_FLAGS} --viz | tee "$EXP_DIR/${FILENAME}.txt" || true | ||
| # Strip JIRA flags for experimental run | ||
| EXTRA_FLAGS_NO_JIRA="${EXTRA_FLAGS//" --jira-ack --jira-auto-create"/}" | ||
| orion --node-count ${IGNORE_JOB_ITERATIONS} --config ${ORION_CONFIG} ${EXTRA_FLAGS_NO_JIRA} --viz | tee orion-exp-output.txt || true | ||
|
|
||
| # Copy all results except .xml files into the experimental artifacts subdirectory | ||
| cp *.csv *.json *.txt *.html "$EXP_DIR/" 2>/dev/null || true | ||
|
|
||
| mkdir -p "$ARTIFACT_DIR/orion-original-edivisive" | ||
| cp *.csv *.json *.txt *.html "$ARTIFACT_DIR/orion-original-edivisive/" 2>/dev/null || true | ||
| popd | ||
|
Comment on lines
+303
to
+320
Contributor
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -e
(
false
echo "subshell continued past failure"
) || echo "outer caught failure"Repository: openshift/release Length of output: 93 🏁 Script executed: fd -t f "openshift-qe-orion-commands.sh"Repository: openshift/release Length of output: 137 🏁 Script executed: wc -l ci-operator/step-registry/openshift-qe/orion/openshift-qe-orion-commands.shRepository: openshift/release Length of output: 141 🏁 Script executed: sed -n '290,330p' ci-operator/step-registry/openshift-qe/orion/openshift-qe-orion-commands.shRepository: openshift/release Length of output: 1488 🏁 Script executed: sed -n '1,50p' ci-operator/step-registry/openshift-qe/orion/openshift-qe-orion-commands.shRepository: openshift/release Length of output: 1698 🏁 Script executed: grep -n "EXTRA_FLAGS" ci-operator/step-registry/openshift-qe/orion/openshift-qe-orion-commands.sh | head -20Repository: openshift/release Length of output: 966 🏁 Script executed: sed -n '200,205p' ci-operator/step-registry/openshift-qe/orion/openshift-qe-orion-commands.shRepository: openshift/release Length of output: 245 🏁 Script executed: sed -n '303,325p' ci-operator/step-registry/openshift-qe/orion/openshift-qe-orion-commands.sh | cat -nRepository: openshift/release Length of output: 1170 🏁 Script executed: sed -n '1,5p' ci-operator/step-registry/openshift-qe/orion/openshift-qe-orion-commands.shRepository: openshift/release Length of output: 125 Commands in the experimental clone/install block can fail without failing the outer shell. Because the subshell (lines 303–321) sits on the left-hand side of Move the Suggested fix-(
+set +e
+(
+ set -e
EXP_DIR="/tmp/orion-original-edivisive"
mkdir -p "$EXP_DIR"
pushd "$EXP_DIR"
git clone -q --branch orig-edivisive-exp $ORION_REPO --depth 1
pushd orion
pip install -q -r requirements.txt
pip install -q .
echo "Running experimental orion (original e-divisive)..."
EXTRA_FLAGS_NO_JIRA="${EXTRA_FLAGS//" --jira-ack --jira-auto-create"/}"
orion --node-count ${IGNORE_JOB_ITERATIONS} --config ${ORION_CONFIG} ${EXTRA_FLAGS_NO_JIRA} --viz | tee orion-exp-output.txt || true
mkdir -p "$ARTIFACT_DIR/orion-original-edivisive"
cp *.csv *.json *.txt *.html "$ARTIFACT_DIR/orion-original-edivisive/" 2>/dev/null || true
popd
popd
echo "Experimental orion run complete."
-)
+)
+exp_orion_status=$?
+set -e
+if [[ $exp_orion_status -ne 0 ]]; then
+ echo "Experimental orion block failed, continuing."
+fi🧰 Tools🪛 Shellcheck (0.11.0)[info] 306-306: Double quote to prevent globbing and word splitting. (SC2086) [info] 315-315: Double quote to prevent globbing and word splitting. (SC2086) [info] 315-315: Double quote to prevent globbing and word splitting. (SC2086) [info] 315-315: Double quote to prevent globbing and word splitting. (SC2086) [info] 319-319: Use ./glob or -- glob so names with dashes won't become options. (SC2035) [info] 319-319: Use ./glob or -- glob so names with dashes won't become options. (SC2035) [info] 319-319: Use ./glob or -- glob so names with dashes won't become options. (SC2035) [info] 319-319: Use ./glob or -- glob so names with dashes won't become options. (SC2035) 🤖 Prompt for AI Agents |
||
| popd | ||
| echo "Experimental orion run complete." | ||
| ) || echo "Experimental orion block failed, continuing." | ||
|
|
||
|
|
||
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.
This artifact glob also copies checked-in repo files.
Line 319 runs from the cloned repo root, so
*.txtwill includerequirements.txt, and any checked-in*.json/*.htmlfiles will be copied into the experimental artifact directory as if they were Orion outputs. Narrow this to the actual generated filenames or stage generated artifacts in a dedicated directory first.🧰 Tools
🪛 Shellcheck (0.11.0)
[info] 319-319: Use ./glob or -- glob so names with dashes won't become options.
(SC2035)
[info] 319-319: Use ./glob or -- glob so names with dashes won't become options.
(SC2035)
[info] 319-319: Use ./glob or -- glob so names with dashes won't become options.
(SC2035)
[info] 319-319: Use ./glob or -- glob so names with dashes won't become options.
(SC2035)
🤖 Prompt for AI Agents