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

the integration test failed with timeout sometimes #200

Open
sio4 opened this issue Jul 20, 2022 · 9 comments
Open

the integration test failed with timeout sometimes #200

sio4 opened this issue Jul 20, 2022 · 9 comments
Assignees
Labels
internal cleanup internal cleanup (or a kind of refactoring)
Milestone

Comments

@sio4
Copy link
Member

sio4 commented Jul 20, 2022

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

@sio4 sio4 self-assigned this Jul 20, 2022
@sio4 sio4 added the internal cleanup internal cleanup (or a kind of refactoring) label Jul 20, 2022
@sio4 sio4 changed the title the integration test failed with timeout sometimes. any chance to reduce the testing time? the integration test failed with timeout sometimes Jul 21, 2022
@sio4
Copy link
Member Author

sio4 commented Jul 21, 2022

Hi @paganotoni,

JFYI

After we discussed the usage of the oldapp repository, I tried organizing a new structure for collecting old versions of generated apps and the result is temporarily located at https://github.com/sio4/coke.

After that, I found that one of our integration tests fails while preparing the old app tree by "installing the old version of buffalo, run buffalo new (and node related things inside the step)" in some conditions. I think we can change this sequence with something like "run git clone .../coke then run git checkout tag-for-target-version".

However, I think we can postpone this discussion, decision, and change to the time after your current work for the new generation.

@paganotoni
Copy link
Member

Hi Sio, Thanks for pointing this out.

I'm hoping to grow our testing and improve it with the new approach for the CLI. I might be putting too much pressure into that release but I think we will be able to test closer to the way our users do.

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment. Otherwise, this will be closed in 7 days.

@github-actions github-actions bot added the stale label Oct 22, 2022
@sio4 sio4 removed the stale label Oct 22, 2022
@paganotoni
Copy link
Member

@sio4 now that we have discussed and decided to abandon the other CLI approach and centered on this one I think we should find ways to do better integration testing of the CLI. Lets find a way to make these more stable.

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment. Otherwise, this will be closed in 7 days.

@github-actions github-actions bot added the stale label Dec 6, 2022
@sio4 sio4 removed the stale label Dec 9, 2022
@github-actions
Copy link

github-actions bot commented Jan 9, 2023

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment. Otherwise, this will be closed in 7 days.

@github-actions github-actions bot added the stale label Jan 9, 2023
@sio4 sio4 removed the stale label Jan 10, 2023
@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment. Otherwise, this will be closed in 7 days.

@github-actions github-actions bot added the stale label Feb 10, 2023
@sio4 sio4 removed the stale label Feb 12, 2023
@sio4 sio4 added this to the v1.0.0 milestone Feb 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
internal cleanup internal cleanup (or a kind of refactoring)
Projects
None yet
Development

No branches or pull requests

2 participants