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

Investigate panic in stack generation #3811

Open
1 of 2 tasks
yhakbar opened this issue Jan 27, 2025 · 1 comment
Open
1 of 2 tasks

Investigate panic in stack generation #3811

yhakbar opened this issue Jan 27, 2025 · 1 comment
Assignees
Labels
bug Something isn't working preserved Preserved issues never go stale stacks Issues related to Stacks

Comments

@yhakbar
Copy link
Collaborator

yhakbar commented Jan 27, 2025

Describe the bug

@denis256

Take a look at the following panic that popped up in our tests:

=== NAME  TestStacksGenerateRemote
    integration_stacks_test.go:65: Failed to run Terragrunt command 'terragrunt stack generate --experiment stacks --terragrunt-working-dir /tmp/terragrunt-test3979462613/fixtures/stacks/remote' due to error: *errors.errorString error downloading 'https://github.com/gruntwork-io/terragrunt.git?ref=main': /usr/bin/git exited with -1: Cloning into '/tmp/getter2235932958/temp'...
        Updating files:   3% (76/2198)
Updating files:   3% (85/2198)
Updating files:   4% (88/2198)
Updating files:   5% (110/2198)
Updating files:   5% (126/2198)
Updating files:   6% (132/2198)
Updating files:   7% (154/2198)
Updating files:   8% (176/2198)
Updating files:   8% (196/2198)
Updating files:   9% (198/2198)
Updating files:  10% (220/2198)
Updating files:  11% (242/2198)
Updating files:  12% (264/2198)
Updating files:  13% (286/2198)
Updating files:  13% (291/2198)
Updating files:  14% (308/2198)
Updating files:  14% (310/2198)
Updating files:  15% (330/2198)
Updating files:  16% (352/2198)
Updating files:  17% (374/2198)
Updating files:  18% (396/2198)
Updating files:  19% (418/2198)
Updating files:  19% (430/2198)
Updating files:  20% (440/2198)
Updating files:  21% (462/2198)
Updating files:  22% (484/2198)
Updating files:  23% (506/2198)
Updating files:  23% (512/2198)
Updating files:  24% (528/2198)
Updating files:  25% (550/2198)
Updating files:  26% (572/2198)
Updating files:  27% (594/2198)
Updating files:  28% (616/2198)
Updating files:  28% (620/2198)
Updating files:  29% (638/2198)
Updating files:  30% (660/2198)
Updating files:  31% (682/2198)
Updating files:  32% (704/2198)

        /home/circleci/project/cli/commands/stack/action.go:134 (0x1c44896)
        	processStackFile: return errors.New(err)
        /home/circleci/project/cli/commands/stack/action.go:70 (0x1c43eca)
        	generateStack: if err := processStackFile(ctx, opts, stackFile); err != nil {
        /home/circleci/project/cli/commands/stack/action.go:36 (0x1c43a98)
        	RunGenerate: return generateStack(ctx, opts)
        /home/circleci/project/cli/commands/stack/command.go:33 (0x1c45725)
        	NewCommand.func1: return RunGenerate(ctx.Context, opts.OptionsFromContext(ctx))
        /home/circleci/project/cli/app.go:236 (0x208b967)
        	runAction.func2: return action(cliCtx)
        /home/circleci/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:78 (0x1715c70)
        	(*Group).Go.func1: if err := f(); err != nil {
        /usr/local/go/src/runtime/asm_amd64.s:1700 (0x47f6a1)
        	goexit: BYTE	$0x90	// NOP
        
        
        Stdout: (see log output above)
        
        Stderr: (see log output above)
--- FAIL: TestStacksGenerateRemote (33.24s)

Let's confirm that there isn't a serious issue there.

Steps To Reproduce

I'm not sure. It just popped up in CI.

Expected behavior

No panics in tests.

Nice to haves

  • Terminal output
  • Screenshots

Versions

Happened while running tests for #3810.

  • Terragrunt version: Whatever is in CI
  • OpenTofu/Terraform version: Whatever is in CI
  • Environment details (Ubuntu 20.04, Windows 10, etc.): CI

Additional context

Add any other context about the problem here.

@yhakbar yhakbar added bug Something isn't working stacks Issues related to Stacks labels Jan 27, 2025
@denis256
Copy link
Member

Most probably issue with cloning large repos, will take a look 🤔

@denis256 denis256 added the preserved Preserved issues never go stale label Jan 28, 2025
@denis256 denis256 self-assigned this Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working preserved Preserved issues never go stale stacks Issues related to Stacks
Projects
None yet
Development

No branches or pull requests

2 participants