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

Update scaffolding bats integration tests #3761

Draft
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

c12i
Copy link
Contributor

@c12i c12i commented Apr 26, 2024

Summary

TODO:

  • CHANGELOGs updated with appropriate info

@c12i c12i marked this pull request as draft April 26, 2024 12:06
@c12i c12i force-pushed the update-scaffolding-bats-integration-tests branch from 78750ae to edadba1 Compare April 26, 2024 12:24
@c12i c12i force-pushed the update-scaffolding-bats-integration-tests branch from edadba1 to fc9c6b5 Compare April 26, 2024 13:21
@c12i c12i force-pushed the update-scaffolding-bats-integration-tests branch from bafe211 to f58cfa6 Compare April 26, 2024 13:33
@c12i
Copy link
Contributor Author

c12i commented Apr 26, 2024

It appears that this function call from here is resulting in a os error: IO error: Read-only file system (os error 30).

@c12i
Copy link
Contributor Author

c12i commented May 9, 2024

@ThetaSinner and @steveej, running into two issues here.

It appears that adding extra-experimental-features = flakes nix-command seems to fail in the runner, causing the scaffolded folder to be deleted via a fs::remove_dir_all(&app_dir)? call that is causing the IO error: Permission denied (os error 13) leading to the ci job failures

holonix/test/scaffolding.bats Outdated Show resolved Hide resolved
@@ -18,5 +18,24 @@ teardown() {

@test "expected scaffold an example to succeed" {
set -e
hc scaffold example forum -t vue
Copy link
Member

Choose a reason for hiding this comment

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

looks like this has been failing internally all along and it exitted 0 anyway.

Copy link
Member

Choose a reason for hiding this comment

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

@c12i i think this needs to be fixed in scaffolding. are you going to take it from here or should i create an issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching this, I know what the issue is, the arguments are a little different with different scaffolding versions. I can look into how I can fix this.

setup_and_build_hello_world() {
print_version

hc-scaffold example hello-world
Copy link
Member

Choose a reason for hiding this comment

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

ideally we'd know about the failure here, see my previous comment

Copy link
Member

Choose a reason for hiding this comment

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

using strace i can see that the problem is a missing nix binary in the test, and after adding that missing internet access. we're going to have to rework the holonix integration test derivation to make it work. i'm looking into our options right now.

@c12i c12i self-assigned this May 14, 2024
@steveej steveej added bug Something isn't working automation Continuous integration issues and other automation improvements labels May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation Continuous integration issues and other automation improvements bug Something isn't working
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

None yet

2 participants