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

TTTN #124

Open
wants to merge 62 commits into
base: main
Choose a base branch
from
Open

TTTN #124

Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
41e0820
Bring kogito-serverless-operator code over
thiagoelg Apr 19, 2024
51a7ca5
Merge branch 'main' of github.com:apache/incubator-kie-tools into kog…
thiagoelg Apr 19, 2024
8496159
Go tidy
thiagoelg Apr 22, 2024
31b5503
v1 flag on api
thiagoelg Apr 22, 2024
034eb2f
Build and test scripts
thiagoelg Apr 23, 2024
2b30664
Tmp: Faster CI
thiagoelg Apr 23, 2024
0c6502a
Merge branch 'main' of github.com:apache/incubator-kie-tools into kog…
thiagoelg Apr 23, 2024
6d7a3e9
Merge branch 'main' of github.com:apache/incubator-kie-tools into kog…
thiagoelg Apr 23, 2024
f77ee13
Build images before testing
thiagoelg Apr 23, 2024
18ebedb
Activate python env
thiagoelg Apr 23, 2024
703f858
Add Dockerfile back
thiagoelg Apr 23, 2024
59f2b7d
One more Dockerfile
thiagoelg Apr 23, 2024
874a883
Python scripts on Windows
thiagoelg Apr 23, 2024
ee7cfc9
Skip builds on Windows and macOS
thiagoelg Apr 23, 2024
20787ed
Add python venv dep
thiagoelg Apr 23, 2024
2cfee83
Oops
thiagoelg Apr 23, 2024
7939978
Oops, I did it again
thiagoelg Apr 23, 2024
958bfa4
Increase timeout
thiagoelg Apr 24, 2024
c1f6f0e
Fix package.json
thiagoelg Apr 24, 2024
cb99cfe
Add s2i deps to devbox
thiagoelg Apr 24, 2024
076ec4c
Merge branch 'main' of github.com:apache/incubator-kie-tools into kog…
thiagoelg Apr 24, 2024
23d855e
Diff and devbox
thiagoelg Apr 24, 2024
b1bed81
Format after generate
thiagoelg Apr 24, 2024
20be691
Fix lockfile
thiagoelg Apr 24, 2024
0a05376
Fix image:build
thiagoelg Apr 24, 2024
31c88ec
Default to -nightly, latest and 0.0.0
thiagoelg Apr 24, 2024
4a2e6bf
bump-version fix
thiagoelg Apr 24, 2024
da0a628
bump-version fix
thiagoelg Apr 24, 2024
dd9c8e3
format bump version
thiagoelg Apr 24, 2024
fdeb24b
bump-version fix
thiagoelg Apr 24, 2024
4ed3404
remove ci files from operator and fix format
thiagoelg Apr 24, 2024
f907702
Merge branch 'main' of github.com:apache/incubator-kie-tools into kog…
thiagoelg Apr 24, 2024
9385ca2
revert kn-plugin-workflow
thiagoelg Apr 24, 2024
527d4a2
Rename kogito-images yamls + script
thiagoelg Apr 25, 2024
4d46545
Fix format
thiagoelg Apr 25, 2024
f523fad
Fix format
thiagoelg Apr 25, 2024
1e62d90
Change format script and bump-version
thiagoelg Apr 25, 2024
5924f8e
Change image name on -image.yaml file
thiagoelg Apr 25, 2024
e32bb52
Disable script_debug on kogit-swf-devmode
thiagoelg Apr 25, 2024
dbb1155
Merge branch 'main' of github.com:apache/incubator-kie-tools into kog…
thiagoelg Apr 25, 2024
ffbbcbe
Replace version in bundle and manager.yaml
thiagoelg Apr 25, 2024
831bd6b
Remove sed requirement
tiagobento Apr 25, 2024
cfb5c83
Oops. Forgot to commit these.
tiagobento Apr 25, 2024
eedbde1
Skip operator image build on macOS
tiagobento Apr 26, 2024
a20eb7a
Create exclusive job for it
tiagobento Apr 26, 2024
49a11aa
Oops. Forgot to commit the new job.
tiagobento Apr 26, 2024
0719f92
Testing...
tiagobento Apr 26, 2024
bae68c7
Test again
tiagobento Apr 26, 2024
246ad15
Revert changes to checkout & clone
tiagobento Apr 26, 2024
96c8127
kie-issues-1035-work
thiagoelg Apr 26, 2024
4f46a2d
CI splitting
tiagobento Apr 26, 2024
4f8536a
Oops. Fix version
tiagobento Apr 26, 2024
fdf5cff
Fix array spreading in Bash
tiagobento Apr 26, 2024
e9f6069
Fix kogito-swf-builder image build
tiagobento Apr 26, 2024
f419d2a
Oops
tiagobento Apr 26, 2024
0e1eee9
Bootstrap only relevant packages on SWF stack CI
tiagobento Apr 26, 2024
0694167
One more
tiagobento Apr 26, 2024
cc7767a
Copy m2 artifacts to kogito-swf-devmode image
thiagoelg Apr 26, 2024
8b34a43
Add maven.config to devmode image
thiagoelg Apr 26, 2024
6813d8b
Test
tiagobento Apr 28, 2024
3070e15
Build using all cores
tiagobento Apr 30, 2024
b1694d6
TTTN
tiagobento Apr 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Build and test scripts
thiagoelg committed Apr 23, 2024
commit 034eb2fc89ed2c4abdf73311eb4fa15cd3e873ae
13 changes: 13 additions & 0 deletions .github/actions/setup-env/action.yml
Original file line number Diff line number Diff line change
@@ -134,6 +134,19 @@ runs:
pnpm -r exec 'bash' '-c' 'echo -ntp >> .mvn/maven.config'
pnpm -r exec 'bash' '-c' 'echo -Xmx2g > .mvn/jvm.config'

- name: "Install s2i pre-reqs (Ubuntu only)"
shell: bash
run: |
echo "STEP: Install libbtrfs-dev (Ubuntu only)"
cd ${{ inputs.working_dir }}
if [ "${{ runner.os }}" == "Linux" ]; then
sudo apt-get -y install libbtrfs-dev libgpgme-dev libdevmapper-dev > /dev/null 2>&1
fi
- name: "Setup s2i (source-to-image)"
shell: bash
run: |
go install github.com/openshift/source-to-image/cmd/[email protected]

- name: "Install Fluxbox (Ubuntu only)"
shell: bash
run: |
15 changes: 14 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -186,6 +186,19 @@ packages/kie-sandbox-fs/coverage
packages/kie-sandbox-fs/junit
packages/kie-sandbox-fs/*-0.0.0-development.tgz

# kogito-serverless-operator
# These files are generated by Cekit, we can ignore the operator-sdk ones.
packages/kogito-serverless-operator/**/bundle.Dockerfile
packages/kogito-serverless-operator/**/Dockerfile
# Test binary, built with `go test -c`
packages/kogito-serverless-operator/**/*.test
# Output of the go coverage tool, specifically when used with LiteIDE
packages/kogito-serverless-operator/**/*.out
# Build
packages/kogito-serverless-operator/bin/
packages/kogito-serverless-operator/target/
packages/kogito-serverless-operator/e2e-test-report.xml

#angular
**/.angular

@@ -279,4 +292,4 @@ packages/dmn-marshaller/**/ts-gen
packages/scesim-marshaller/**/ts-gen

# devbox
.devbox
.devbox
31 changes: 0 additions & 31 deletions packages/kogito-serverless-operator/.gitignore

This file was deleted.

15 changes: 12 additions & 3 deletions packages/kogito-serverless-operator/Makefile
Original file line number Diff line number Diff line change
@@ -114,7 +114,7 @@ vet: ## Run go vet against code.
go vet ./...

.PHONY: test
test: manifests generate envtest vet fmt test-api ## Run tests.
test: manifests generate envtest vet fmt test-api test-workflowproj test-container-builder ## Run tests.
KUBEBUILDER_ASSETS="$(shell $(ENVTEST) use $(ENVTEST_K8S_VERSION) --bin-dir $(LOCALBIN) -p path)" go test $(shell go list ./... | grep -v /test/) -coverprofile cover.out

.PHONY: test-api
@@ -145,7 +145,7 @@ test-workflowproj:
##@ Build

.PHONY: build
build: generate ## Build manager binary.
build: generate-all ## Build manager binary.
CGO_ENABLED=0 go build -trimpath -ldflags=-buildid= -o bin/manager main.go

.PHONY: build-4-debug
@@ -350,4 +350,13 @@ create-cluster: install-kind

.PHONY: delete-cluster
delete-cluster: install-kind
kind delete cluster && docker rm -f kind-registry
kind delete cluster && docker rm -f kind-registry

.PHONY: load-docker-image
load-docker-image: install-kind
kind load docker-image $(IMG)

.PHONY: full-test-e2e
full-test-e2e: create-cluster load-docker-image deploy
kubectl wait pod -A -l control-plane=sonataflow-operator --for condition=Ready
go test ./test/e2e/* -v -ginkgo.v -ginkgo.no-color -ginkgo.junit-report=./e2e-test-report.xml -timeout 60m
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ clean:

.PHONY: docker-integration-test
docker-integration-test: ## Test docker integration tests
go test ./... -tags integration_docker
go test ./... -tags integration_docker -v

.PHONY: kaniko-docker-integration-test
kaniko-docker-integration-test: ## Test kaniko integration docker tests
8 changes: 5 additions & 3 deletions packages/kogito-serverless-operator/package.json
Original file line number Diff line number Diff line change
@@ -13,10 +13,12 @@
"url": "https://github.com/apache/incubator-kie-tools/issues"
},
"scripts": {
"build:dev": "make build",
"build:prod": "make build && pnpm test",
"build:dev": "make build && pnpm image:build && pnpm pretty-quick",
"build:prod": "make build && pnpm test && pnpm image:build && pnpm test && pnpm test:e2e && pnpm pretty-quick",
"image:build": "run-script-if --bool \"$(build-env containerImages.build)\" --then \"make container-build\"",
"install": "go mod tidy",
"test": "run-script-if --ignore-errors \"$(build-env tests.ignoreFailures)\" --bool \"$(build-env tests.run)\" --then \"make test\""
"test": "run-script-if --ignore-errors \"$(build-env tests.ignoreFailures)\" --bool \"$(build-env tests.run)\" --then \"make test\"",
"test:e2e": "run-script-if --ignore-errors \"$(build-env tests.ignoreFailures)\" --bool \"$(build-env endToEndTests.run)\" --then \"make full-test-e2e\""
},
"dependencies": {},
"devDependencies": {