Skip to content
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

Rework build-setup | Add single-node CI #1282

Merged
merged 5 commits into from
Dec 13, 2022
Merged

Rework build-setup | Add single-node CI #1282

merged 5 commits into from
Dec 13, 2022

Conversation

abejgonzalez
Copy link
Contributor

@abejgonzalez abejgonzalez commented Dec 5, 2022

Updates the build-setup.sh script to initialize as much as possible (FireSim, FireMarshal, tags, etc). However, there is a new opt-out mechanism for power-users to disable different parts of the setup (this is not tested extensively). Additionally, this PR adds a new CI workflow where a persistent CI clone is set up and regressed on (in the future this will be used to regress on the tutorial setup).

Related PRs / Issues:

Type of change:

  • Bug fix
  • New feature
  • Other enhancement

Impact:

  • RTL change
  • Software change (RISC-V software)
  • Build system change
  • Other

Contributor Checklist:

  • Did you set main as the base branch?
  • Is this PR's title suitable for inclusion in the changelog and have you added a changelog:<topic> label?
  • Did you state the type-of-change/impact?
  • Did you delete any extraneous prints/debugging code?
  • Did you mark the PR with a changelog: label?
  • (If applicable) Did you update the conda .conda-lock.yml file if you updated the conda requirements file?
  • (If applicable) Did you add documentation for the feature?
  • (If applicable) Did you add a test demonstrating the PR?
  • (If applicable) Did you mark the PR as Please Backport?

build-setup.sh Outdated Show resolved Hide resolved
Copy link
Contributor

@jerryz123 jerryz123 left a comment

Choose a reason for hiding this comment

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

Very nice.

@abejgonzalez
Copy link
Contributor Author

@jerryz123 Re-review request!

* )
error "invalid option $1"
usage 1 ;;
esac
shift
done

if [ "$SKIP_CONDA" = false ]; then
# check if the arg is found in the SKIP_LIST
do_skip() {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a bit confusing, since if do_skip evaluates to true, the block is run.
Perhaps rename do_skip to run_step, where run_step returns true if the ARG is not in the SKIP_LIST.

popd
fi

if do_skip "6"; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Add comment before each block specifying what the block does

Copy link
Contributor

@jerryz123 jerryz123 left a comment

Choose a reason for hiding this comment

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

Just some changes to make the script easier to read.

@abejgonzalez abejgonzalez merged commit e51c006 into main Dec 13, 2022
@abejgonzalez abejgonzalez mentioned this pull request Dec 13, 2022
16 tasks
@jerryz123 jerryz123 deleted the full-setup branch February 13, 2023 07:52
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.

2 participants