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

[examples] enable stacks-django and rust examples to pass #880

Merged
merged 7 commits into from
Apr 12, 2023

Conversation

savil
Copy link
Collaborator

@savil savil commented Apr 7, 2023

Summary

Fixes issues:

  • django:

    • using a port 8089 which is different than the default which wasn't working in CICD for some reason.
    • did devbox services start and devbox services stop
  • rust: changed non-posix source to posix-compliant .

How was it tested?

added set -e to both and see buildkite run be green.

Copy link
Collaborator Author

savil commented Apr 7, 2023

@savil savil force-pushed the savil/exit-on-failure-scripts branch from 33755df to fad67f5 Compare April 8, 2023 00:25
@savil savil force-pushed the savil/testscripts-env-functions branch from 6cf163c to 6e234a1 Compare April 8, 2023 00:25
@savil savil force-pushed the savil/exit-on-failure-scripts branch from fad67f5 to 7ef9aac Compare April 8, 2023 00:36
@savil savil force-pushed the savil/testscripts-env-functions branch 3 times, most recently from 6cba2d1 to 31183e7 Compare April 8, 2023 00:58
@savil savil changed the base branch from savil/exit-on-failure-scripts to savil/lepp-stack-fixes April 8, 2023 01:02
@savil savil force-pushed the savil/testscripts-env-functions branch from 31183e7 to 2847358 Compare April 8, 2023 01:02
@savil savil changed the title debug failing tests [examples] enable stacks-django and rust examples to pass Apr 8, 2023
@savil savil force-pushed the savil/testscripts-env-functions branch 2 times, most recently from 7038c73 to ad06e55 Compare April 8, 2023 01:41
@savil savil requested a review from Lagoja April 10, 2023 16:00
@savil savil marked this pull request as ready for review April 10, 2023 16:00
@@ -10,14 +10,17 @@
"mkdir -p $rustupHomeDir",
"export RUSTUP_HOME=$rustupHomeDir",
"export LIBRARY_PATH=$LIBRARY_PATH:\"$projectDir/nix/profile/default/lib\"",
"source conf/set-env.sh",
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this work? We had to change the mariadb example to use source in order for the env variables to stick in the shell

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Looking more closely, I don't understand why we need the lines prior to . conf/set-env.sh.

With the above lines, the mkdir -p $rustupHomeDir gives an error when I do devbox run run_test.

When I try devbox run run_test without the above lines, everything works as expected. Also, did devbox shell and echo $RUSTUP_HOME to confirm it prints the path/to/projectDir/conf as expected.

I've removed the lines prior to . conf/set-env.sh

@savil savil force-pushed the savil/testscripts-env-functions branch from ad06e55 to 73ba576 Compare April 10, 2023 22:25
@savil savil force-pushed the savil/testscripts-env-functions branch from 73ba576 to 327692e Compare April 10, 2023 22:37
@savil savil force-pushed the savil/testscripts-env-functions branch from 327692e to 3c1b417 Compare April 10, 2023 22:42
@savil savil force-pushed the savil/testscripts-env-functions branch from 3c1b417 to 069ec79 Compare April 10, 2023 22:44
@savil savil force-pushed the savil/testscripts-env-functions branch from 1f39049 to 3397c47 Compare April 11, 2023 23:28
"export RUSTUP_HOME=$rustupHomeDir",
"export LIBRARY_PATH=$LIBRARY_PATH:\"$projectDir/nix/profile/default/lib\"",
"source conf/set-env.sh",
". conf/set-env.sh",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

NOTE: #890 improves the rust-example further. Will land this PR as-is, and merge with that PR's changes.

@savil savil force-pushed the savil/testscripts-env-functions branch from 3397c47 to 3d43a84 Compare April 11, 2023 23:37
Base automatically changed from savil/lepp-stack-fixes to main April 11, 2023 23:57
@savil savil merged commit c88e4bf into main Apr 12, 2023
9 checks passed
@savil savil deleted the savil/testscripts-env-functions branch April 12, 2023 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants