Skip to content

Commit a3f37ec

Browse files
authored
sync: rc-2024-01-18.1 to stage (#1597)
sync-branches: New code has just landed in rc-2024-01-18.1, so let's bring stage up to speed!
2 parents 3c7e3a6 + af28b37 commit a3f37ec

File tree

192 files changed

+6418
-8812
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+6418
-8812
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
env:
5757
# TODO make sure that the secrets are configured for your repository
5858
OCM_ENV: integration
59+
E2E: "true"
5960
# Dummy SSO variables
6061
SSO_CLIENT_ID: ${{ secrets.SSO_CLIENT_ID }}
6162
SSO_CLIENT_SECRET: ${{ secrets.SSO_CLIENT_SECRET }}
@@ -117,7 +118,7 @@ jobs:
117118
GOPATH=$(go env GOPATH)
118119
export GOPATH
119120
export PATH=${PATH}:$GOPATH/bin
120-
make verify binary test test/integration
121+
make verify binary test
121122
timeout-minutes: 14
122123
build-push-images:
123124
name: "Build and push fleet* images to quay.io"

.openshift-ci/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Debugging
2+
3+
## Links
4+
5+
Job Definition: https://github.com/openshift/release/tree/master/ci-operator/jobs/stackrox/acs-fleet-manager
6+
Config Definition: https://github.com/openshift/release/tree/master/ci-operator/config/stackrox/acs-fleet-manager
7+
8+
### Access Job Cluster and Real Time Logs
9+
10+
- To access the OpenShift UI to view the logs directly search for something like `Using namespace https://console-openshift-console.apps.build04.34d2.p2.openshiftapps.com/k8s/cluster/projects/ci-op-0b6vixvb `.
11+
- Access OpenShift UI, open `Administartor` overview on the top left.
12+
- View the `Environment`, copy the `KUBECONFIG` path, open the Pod's `Terminal` view in the UI and run `cat <KUBECONFIG_PATH>`
13+
- Copy KUBECONFIG content and create the KUBECONFIG locally
14+
- Run `export KUBECONFIG=/local/path/to/kubeconfig`
15+
16+
### Check Fleet-Manager logs and build logs
17+
18+
Path in articafts:
19+
```
20+
build-logs (available also on success): /artifacts/e2e/claim/build-log.txt
21+
fleet-manager: == BEGIN LOG pod-logs_fleet-manager.txt ==
22+
fleetshard: == BEGIN LOG pod-logs_fleetshard-sync_fleetshard-sync.txt ==
23+
```

.openshift-ci/tests/e2e-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ log "Environment up and running"
2222
log "Waiting for fleet-manager to complete leader election..."
2323
# Don't have a better way yet to wait until fleet-manager has completed the leader election.
2424
$KUBECTL -n "$ACSCS_NAMESPACE" logs -l application=fleet-manager -c fleet-manager -f --tail=-1 |
25-
grep -q --line-buffered --max-count=1 'Running as the leader and starting' || true
25+
grep -q --line-buffered --max-count=1 'started leading' || true
2626
sleep 1
2727

2828
FAIL=0

.openshift-ci/tests/e2e.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ export ENABLE_DB_PORT_FORWARDING="false"
110110
if [[ "$SPAWN_LOGGER" == "true" ]]; then
111111
# Need to create the namespaces prior to spawning the stern loggers.
112112
apply "${MANIFESTS_DIR}/shared/00-namespace.yaml"
113-
apply "${MANIFESTS_DIR}/rhacs-operator/00-namespace.yaml"
114113
sleep 2
115114
log "Spawning logger, log directory is ${LOG_DIR}"
116115
stern -n "$ACSCS_NAMESPACE" '.*' --color=never --template '[{{.ContainerName}}] {{.Message}}{{"\n"}}' >"${LOG_DIR}/namespace-${ACSCS_NAMESPACE}.txt" 2>&1 &

0 commit comments

Comments
 (0)