Skip to content

Commit

Permalink
chore: fix the ci github action (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiying-lin authored Aug 14, 2024
1 parent b7e094d commit a812618
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ jobs:
]
if: needs.detect-noop.outputs.noop != 'true'
steps:
- name: Remove unnecessary files
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Set up Go
uses: actions/setup-go@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/enveloped_object_placement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ var _ = Describe("placing wrapped resources using a CRP", func() {
return fmt.Errorf("CRP status diff (-got, +want): %s", diff)
}
return nil
}, eventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to update CRP status as expected")
}, longEventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to update CRP status as expected")
})

AfterAll(func() {
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/rollout_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var _ = Describe("placing wrapped resources using a CRP", Ordered, func() {

It("should update CRP status as expected", func() {
crpStatusUpdatedActual := crpStatusUpdatedActual(wantSelectedResources, allMemberClusterNames, nil, "0")
Eventually(crpStatusUpdatedActual, eventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to update CRP status as expected")
Eventually(crpStatusUpdatedActual, longEventuallyDuration, eventuallyInterval).Should(Succeed(), "Failed to update CRP status as expected")
})

It("should place the resources on all member clusters", func() {
Expand Down
9 changes: 5 additions & 4 deletions test/e2e/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ const (
)

const (
eventuallyDuration = time.Minute * 2
eventuallyInterval = time.Millisecond * 250
consistentlyDuration = time.Second * 15
consistentlyInterval = time.Millisecond * 500
eventuallyDuration = time.Minute * 2
longEventuallyDuration = time.Minute * 5
eventuallyInterval = time.Millisecond * 250
consistentlyDuration = time.Second * 15
consistentlyInterval = time.Millisecond * 500
)

var (
Expand Down

0 comments on commit a812618

Please sign in to comment.