Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

the integration test failed with timeout sometimes #200

@sio4

Description

@sio4

The integration test failed with timeout sometimes (or maybe always now?). Any chance to reduce the testing time?

Example:

  • panic: test timed out after 10m0s
  • cli/internal/cmd/fix_test.TestFix_v0_16_27.func2

The sequence of testing is:

  1. testhelpers.InstallOldBuffaloCMD(t, "v0.16.27")
  2. exec.Command("buffalo", tc.newargs...)
  3. testhelpers.RunBuffaloCMD(t, []string{"fix", "-y"})
  4. testhelpers.RunBuffaloCMD(t, []string{"build"})

Issues:

  • the first step takes time to build the old binary. could be replaced with install binary distribution
  • the second line could work, but we cannot guarantee the generated app has really the old dependencies
  • during the new app generation, node-related compilation happens and it takes a long time, and also could fail
  • also the node modules are not a test target for buffalo fix

I would like to replace steps 1 and 2 with downloading a pre-configured app tree. Will try to fix it. (but not sure if this is a good timing or I need to wait until the new generation)

https://github.com/gobuffalo/cli/runs/7427376418?check_suite_focus=true#step:4:1886

but the timeout with panic itself may not be directly related to the sequence.

https://github.com/gobuffalo/cli/runs/7427376418?check_suite_focus=true#step:4:2888

Metadata

Metadata

Assignees

Labels

internal cleanupinternal cleanup (or a kind of refactoring)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions