Skip to content

Removing cd to undefined BUILD_DIR. Each component has its own cd so this line is not necessary.#250

Open
marcodamico wants to merge 1 commit intoaliyun:masterfrom
marcodamico:master
Open

Removing cd to undefined BUILD_DIR. Each component has its own cd so this line is not necessary.#250
marcodamico wants to merge 1 commit intoaliyun:masterfrom
marcodamico:master

Conversation

@marcodamico
Copy link
Copy Markdown

This is causing build.sh script to fail when running: ./scripts/build.sh -c analytical.
Solves issue #249

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 23, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the astra-sim-alibabacloud component build wrapper to avoid changing directories into an undefined ${BUILD_DIR}, which was causing ./scripts/build.sh -c analytical to fail (issue #249).

Changes:

  • Remove cd "${BUILD_DIR}" || exit from compile() since each component branch already cds into its own build directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 40 to 45
mkdir -p "${SIM_LOG_DIR}"/inputs/system/
mkdir -p "${SIM_LOG_DIR}"/inputs/workload/
mkdir -p "${SIM_LOG_DIR}"/simulation/
mkdir -p "${SIM_LOG_DIR}"/config/
mkdir -p "${SIM_LOG_DIR}"/topo/
mkdir -p "${SIM_LOG_DIR}"/results/
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compile() unconditionally creates directories under ${SIM_LOG_DIR} which defaults to /etc/astra-sim. On non-root runs this produces repeated “Permission denied” errors (as in issue #249) and may leave later steps without writable log/result paths. Consider defaulting SIM_LOG_DIR to a user-writable location (e.g., under the repo or $HOME) and/or allowing an env override with a writability check that fails fast with a clear message.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants