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

test: Fix bug in port-forward.sh #5895

Merged
merged 14 commits into from
May 13, 2021
Merged

test: Fix bug in port-forward.sh #5895

merged 14 commits into from
May 13, 2021

Conversation

alexec
Copy link
Contributor

@alexec alexec commented May 12, 2021

I think this may be the problem.

Signed-off-by: Alex Collins <alex_collins@intuit.com>
@codecov
Copy link

codecov bot commented May 12, 2021

Codecov Report

Merging #5895 (8d4a3dc) into master (e71d33c) will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5895      +/-   ##
==========================================
+ Coverage   47.36%   47.39%   +0.03%     
==========================================
  Files         247      247              
  Lines       15596    15596              
==========================================
+ Hits         7387     7392       +5     
+ Misses       7276     7271       -5     
  Partials      933      933              
Impacted Files Coverage Δ
cmd/argo/commands/get.go 57.28% <0.00%> (ø)
workflow/controller/operator.go 70.53% <0.00%> (+0.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e71d33c...8d4a3dc. Read the comment docs.

@alexec alexec marked this pull request as ready for review May 12, 2021 19:29
@alexec alexec changed the title ci: Allow 1m for waiting for MySQL test: Allow 1m for waiting for MySQL May 12, 2021
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: Alex Collins <alex_collins@intuit.com>
alexec added a commit to alexec/argo-workflows that referenced this pull request May 13, 2021
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: Alex Collins <alex_collins@intuit.com>
@alexec alexec marked this pull request as draft May 13, 2021 16:42
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: Alex Collins <alex_collins@intuit.com>
Signed-off-by: Alex Collins <alex_collins@intuit.com>
@alexec alexec changed the title test: Allow 1m for waiting for MySQL test: Fix bug in port-forward.sh May 13, 2021
@@ -110,7 +110,7 @@ jobs:
echo '127.0.0.1 postgres' | sudo tee -a /etc/hosts
echo '127.0.0.1 mysql' | sudo tee -a /etc/hosts
- run: make install controller cli $(go env GOPATH)/bin/goreman PROFILE=${{matrix.profile}} E2E_EXECUTOR=${{matrix.containerRuntimeExecutor}} AUTH_MODE=client STATIC_FILES=false LOG_LEVEL=info
- run: make start PROFILE=${{matrix.profile}} E2E_EXECUTOR=${{matrix.containerRuntimeExecutor}} AUTH_MODE=client STATIC_FILES=false LOG_LEVEL=info UI=false 2>&1 > /tmp/log/argo-e2e/argo.log &
- run: make start PROFILE=${{matrix.profile}} E2E_EXECUTOR=${{matrix.containerRuntimeExecutor}} AUTH_MODE=client STATIC_FILES=false LOG_LEVEL=info UI=false > /tmp/log/argo-e2e/argo.log 2>&1 &
Copy link
Contributor Author

Choose a reason for hiding this comment

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

order of redirect here meant stderr was not being captured, which made this time-consuming to debug

@@ -6,6 +6,7 @@ on:
- v*
branches:
- master
- dev-*
Copy link
Contributor Author

Choose a reason for hiding this comment

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

revert - we should be creating image on dev-*

if [[ "$(kubectl -n argo get pod -l app=minio -o name)" != "" ]]; then
pf MinIO deploy/minio 9000
fi
wait-for minio
Copy link
Contributor Author

@alexec alexec May 13, 2021

Choose a reason for hiding this comment

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

builds were failing because we need to wait for pods to be ready (which is the same as deployment being available) before starting port-forward

@alexec alexec marked this pull request as ready for review May 13, 2021 16:58
@alexec alexec merged commit ba700ee into master May 13, 2021
@alexec alexec deleted the pf branch May 13, 2021 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants