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

Fix ubuntu build #1214

Merged
merged 7 commits into from
Mar 12, 2024
Merged

Fix ubuntu build #1214

merged 7 commits into from
Mar 12, 2024

Conversation

sveitser
Copy link
Collaborator

@sveitser sveitser commented Mar 8, 2024

  • Install postgres client, just
  • Make it easier to test locally with docker
  • Run with code in repo
  • Fix contracts script name for latest foundry
  • Skip SQL tests
  • Less fuzz runs

- Install postgres client, just
- Make it easier to test locally with docker
- Run with code in repo
- Fix contracts script name for latest foundry
- Skip SQL tests
- Less fuzz runs
@sveitser
Copy link
Collaborator Author

sveitser commented Mar 8, 2024

CI run for the ubuntu install test job: https://github.com/EspressoSystems/espresso-sequencer/actions/runs/8204872112

@sveitser
Copy link
Collaborator Author

sveitser commented Mar 8, 2024

This is currently broken because foundryup downloads to XDG_CONFIG_HOME if that exists 🤦

@sveitser
Copy link
Collaborator Author

sveitser commented Mar 8, 2024

@sveitser sveitser marked this pull request as ready for review March 8, 2024 16:19
trap cleanup EXIT
cleanup(){
echo "Cleaning up repo copy: $REPO_COPY_DIR, need sudo"
sudo rm -rf "$REPO_COPY_DIR"
Copy link
Contributor

Choose a reason for hiding this comment

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

We shouldn't need sudo to remove a directory created by normal user. Same user should be able to delete.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Files will be owned by root because running in docker container.


git clone --recursive . "$REPO_COPY_DIR"

# Run the installation and tests inside the container.
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we are using docker anyway, instead of mounting a dir, couldn't we copy the build script into an ubuntu container and do all the git clone inside the container? This way everything is ephemeral and no need for external temp dirs.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's done like this now so you can get local changes that aren't yet on github inside the container. The script is just for local debugging.

@sveitser sveitser merged commit 6267bbe into main Mar 12, 2024
13 checks passed
@sveitser sveitser deleted the ma/fix-ubuntu-install branch March 12, 2024 09:14
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