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

Integration test improvements #2858

Merged
merged 11 commits into from
Mar 7, 2024
Prev Previous commit
Next Next commit
install self-hsoted as separate step in gh action
  • Loading branch information
hubertdeng123 committed Mar 6, 2024
commit 364d0d2c5a1d094518c03e81c4eb2b469b8b42f4
8 changes: 8 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ jobs:
sudo curl -L https://github.com/docker/compose/releases/download/${{ matrix.compose_version }}/docker-compose-`uname -s`-`uname -m` -o "${{ matrix.compose_path }}/docker-compose"
sudo chmod +x "${{ matrix.compose_path }}/docker-compose"

- name: Install self-hosted
uses: nick-fields/retry@v3
with:
max_attempts: 3
timeout_minutes: 10
Copy link
Contributor

Choose a reason for hiding this comment

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

Any chance this could actually increase the flake rate, due to timeouts becoming more frequent? Or are flakes caused by the actions itself timing out?

Copy link
Member Author

Choose a reason for hiding this comment

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

The typical install logic takes around 4-5 minutes. I doubled that time for the timeout so I don't think this should ever increase the flake rate.

retry_on: error
command: ./install.sh

- name: Integration Test
uses: nick-fields/retry@v3
with:
Expand Down
2 changes: 0 additions & 2 deletions integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ test_option="$1"

if [[ "$test_option" == "--initial-install" ]]; then
echo "Testing initial install"
./install.sh
_integration-test/run.sh
_integration-test/ensure-customizations-not-present.sh
_integration-test/ensure-backup-restore-works.sh
elif [[ "$test_option" == "--customizations" ]]; then
echo "Testing customizations"
./install.sh
source install/dc-detect-version.sh
$dc up -d
echo "Making customizations"
Expand Down
Loading