Commit Graph

184 Commits

Author SHA1 Message Date
David Fridrich 7fb68ef9d6
drastically simplify the components update (#2959)
- now runs in update-deps.sh
- only need to modify json and autogen script
2025-08-05 10:43:45 +00:00
Matej Vašek bb1623fc78
Use localtest.me instead of sslip.io (#2918)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-07-07 13:49:00 +00:00
Luke Kingland 96269d0308
chore: adds makefile target for embedded FS check (#2915) 2025-07-03 06:14:55 +00:00
Luke Kingland 69bdcbbecd
ci: install Tekton and PAC in cluster by default (#2896)
* ci: install Tekton and PAC in cluster by default

* add PAC and Tekton to hack script versions

* fix tekton affinity workaround
2025-06-30 07:50:16 +00:00
Jefferson Ramos 1cccfd3220
test: fix disk space error on nightly podman test (#2866) 2025-06-17 15:01:57 +00:00
Matej Vašek 0ce5759cef
Fix: build correct func-util binary for give arch (#2843)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-05-26 20:04:17 +00:00
David Fridrich 55df89a874
unify flags, codecov revamp a bit (#2773)
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2025-05-12 13:25:44 +00:00
Jefferson Ramos f6b5e39b7c
test: upgrade podman-next packages to fedora 41 for nightly podman test (#2820) 2025-04-29 23:09:05 +00:00
Jefferson Ramos 09c934dcb0
test: update e2e ci workflow to test against arm for go and quarkus (#2788) 2025-04-14 13:58:18 +00:00
Matej Vašek d02801355d
Make base jammy stack multi-arch (#2780)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-14 05:43:16 +00:00
Matej Vašek 8a061c4ed1
Mirror buildpack run images in ghcr.io/knative (#2775)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-09 19:24:12 +00:00
Matej Vašek c93de80381
Fix builder updater (#2774)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-09 13:47:14 +00:00
Luke Kingland 9f6a135702
Python Middleware v2 Scaffolding (#2685)
* refactor python http template

* python http scaffolding

* add python to make update-runtimes

* integrate python scaffolding with func run

* python http template

* reorganize python scaffolding

* cancellation stopgap

* documentation and logging cleanup

* Python Middleware v2 - Scaffolding

* base layer cache

* remove wsgi and flask templates

Inbuilt templates should be limited to a base http and cloudevent
integration, with anything beyond this falling to the officially
supported functions samples repository.

* update python cloudevents runtime in makefile

* python cloudevents middleware

* add python .venvs to gitignore

* clean up venvs on make

* add missing dependencies to python http tempklate

* set python cloudevents manifest

* further cleanup of repository impl

* cleanup

* ignore venv when building runtime container

* set listen address on python container

* remove unnecessary python runtime update from makefile

* remove debug statements and improved comments

* enable scaffolding python funcs in s2i builder

* set listen address on all containers built by s2i

* python s2i integration

* regen fs

* cleanup

* enable host builder

* fix manifest inheritance

* regen fs

* bug fixes

* regen docs

* cleanup and linter error fixes

* conditional python host builder test

* misspellings

* disable python E2E

Until the Python middleware is supported by the Pack builder, the E2E
tests will need to be disabled.

* install python for presubmit tests

* use linux for test builder runs

The target platform for a test needs to be a platform which is available
in all test base images.  That's usually linux.  Using current OS would
fail, for example, building python containers on MacOS because the
official Python base image has no darwin layer.

* fix ineffasign

* set python ce template to python 3.9

* regen fs

* windows python tests

* python templates README
2025-04-02 10:44:05 +00:00
Jefferson Ramos 598c5e237f
test: adding workflow to test against podman nightly build (#2743) 2025-03-19 12:17:14 +00:00
David Fridrich f66b67aa8f
Add a retry functionality to workflows (#2739)
* retry functionality for lifestyle e2e test

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* attempt multiple cluster allocs

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* delete cluster before retry

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* fix

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* better output

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* retry allocate in all workflows

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* add a timer

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* add timers to ci

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

---------

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2025-03-11 12:32:37 +00:00
David Fridrich 51a14ccf23
fix action version (#2736)
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2025-03-06 12:24:01 +00:00
David Fridrich 104e90ce5c
codecov v5 (#2705)
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2025-02-19 14:43:48 +00:00
David Fridrich 67d17c2d51
fix name (#2699)
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2025-02-18 17:01:52 +00:00
David Fridrich a9cb5b7a93
Have static knative component versions in hack/, update in automatic PR (#2677)
* gomod

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* create hack/main.go, delegate, init dynamic updatic of version in allocate.sh, bump github version, unify those versions to v68

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* new file, fix, more updates

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* fix

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* bump

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* fix

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* simplify

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* pr exists, check

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* simplify, fix some stuff

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* simplify further

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* fix sed error, more comments

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* return to main, dont exit

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* single execute, dont force push, return Run()

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* fix printing because no 'ready' is at the end

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* misspell

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* context moved to main

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* updt-builder

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* update-knative-components fixes, pagination, simplify using go templates, json file as source of truth

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* fix error check

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* add json, add kind version, comments

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* fix versions json

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* add newline

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* add tests, fix structs, locally generate files

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* fix comment inline

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* redo the structure to use cmd/ instead of big hack/main, separate, add \n to generated .json

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* simplify test, fix linter errors

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* small additions, comments

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* update autogen comment

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* gomod

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* localize const to test

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* suggestions

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* makefile

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* makefile, update builder target

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* prefix target with wf

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

---------

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2025-02-18 15:55:51 +00:00
David Fridrich bc6fad7635
podman available in def package repo ubuntu 24 (#2692)
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2025-02-14 19:46:53 +00:00
Matej Vašek 9c0c216193
Optimise func-utils image (#2686)
* Use command instad of script in some tkn tasks

The "script" requires /bin/sh present in the image.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Add s2i-generate command to func-util image

The command encompasses some logic previously implemented as shell
script defined in tekton task. This allows us to remove sh/shell from
the func-util image.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Make func-util image "FROM scratch"

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Change func-utils image tag latest->v2

Since there are backward incompatible changes we must not change how
'latest' tag work (at least for some time).

For this reason we change tag to v2, so newer versions of func use that
and older use 'latest' that is compatible with them.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-02-06 07:02:13 +00:00
Matej Vašek 18ce3488e8
Fix multiarch image build (#2679)
This action will install qemu static binaries and setup binfmt.

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-01-30 00:45:55 +00:00
Matej Vašek d2aa94d30a
Remove usage of ttl.sh (#2653)
* Remove usage of ttl.sh

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Fix detection of host resolution failure

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-01-21 06:32:09 +00:00
Matej Vašek 527b917f07
Remove dependency on docker hub (#2654)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-01-19 11:04:07 +00:00
Luke Kingland 02b331d8d2
setup go via shared action (#2657) 2025-01-17 06:30:04 +00:00
David Fridrich 8dc529f80b
bump: setup-node action version in workflows (#2613)
* fix ndoe version action

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

* one more

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>

---------

Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
2024-12-17 05:38:08 +00:00
Luke Kingland b033bb5a4f
use knative go setup action (#2612)
Keeps the Go version used by Knative projects in sync with each-other
and tooling.
2024-12-13 04:20:54 +00:00
Matej Vašek 1dd2e43344
Improved build caching for s2i local build (#2581)
* Improve build caching for s2i local build

Use 'RUN --mount=type=cache...' to cache build artifacts,
e.g. the local maven repostory.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Update podman version in tests

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup: set buildopt version to buildkit

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-11-22 14:40:02 +00:00
Jefferson Ramos b3b038bcdb
test: enforce branch on test remote repository (#2540) 2024-10-12 19:42:09 +00:00
Matej Vašek 7a75fecfec
Fix failure in GHA caused by missing cargo bin (#2440)
It appears that the cargo in no longer part of GHA image at least for macOS.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2024-07-23 12:48:58 +00:00
Matej Vašek e641bba0b5
Cron GH Action to update CA bundle (#2422)
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2024-07-12 06:36:45 +00:00
Matej Vašek 2e7154ca84
Optimized disk usage in GH Action for integration tests (#2355)
* tests: remote unncessary software from GH VM

Previously tests were failing with no space left on device.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup: updated generated code

The codegen should have been updated in prior PR but we forget do do it
there.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* test: wait for gitlab setting effect

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-06-11 18:47:42 +00:00
Matej Vašek 3db3af91f5
chore: cluster log (#2321)
Save logs as an GH artifact

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-05-23 15:45:51 +00:00
Knative Automation e35f75b5c0
Update actions (#2310)
Signed-off-by: Knative Automation <automation@knative.team>
2024-05-16 13:41:36 +00:00
Matej Vašek 0967035e3e
chore: upload coverage of unittests together (#2301)
* chore: upload coverage of unittests together

Before this each run for respective OS carried out upload to codecov
server however this consumes codecov tokenless upload limit.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup: decrease artifact retention period

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fixup: added the checkout action

I would not expect that this would be needed for codecov upload.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-05-15 11:16:42 +00:00
Matej Vašek 46f6f08feb
fix: pin octokit npm module version to 3 (#2295)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-05-13 13:42:51 +00:00
Matej Vašek 276f881e53
chore: update GH actions (#2298)
* chore: update checkout action

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* chore: update actions/upload-artifact

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* chore: update java setup action

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fix: set codecov token

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-05-13 12:27:46 +00:00
Matej Vašek 1a17594eb4
fix: call appropriate script in CI GH action (#2297)
* fix: call appropriate script in CI GH action

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fix: install python for GH actions

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* chore: update setup-java in GH action

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* chore: update upstream-artifacts version

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-05-13 10:00:37 +00:00
Matej Vašek 6649579eb1
Remove axios dependency (#2294)
* fix: downgrade Java version for Spring Boot

The newer version of Spring Boot does not work with Java 21

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* chore: replace axios with fetch()

* Removed dependency on axios by using standard node fetch() function.
* Fixed getLatestPlatform(): using the 'tag_name' property instead of the 'name' property.

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Revert "fix: downgrade Java version for Spring Boot"

This reverts commit fcfe65a0ad.

* empyt: just trigger CI

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* chore: update setup-java action

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fix: add missing description property

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* fix: set distroless for setup-java action

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-05-11 01:32:30 +00:00
Matej Vašek b5232942ea
chore: func-utils image has appropriate labels (#2262)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-04-15 18:30:21 +00:00
Matej Vašek cf433243cb
chore: update codecov/codecov-action (#2267)
* chore: update codecov/codecov-action

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* chore: pin paketo builder version

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-04-10 11:47:01 +00:00
Luke Kingland e4010db028
src: cleanup setup scripts (#2247)
The current binaries and allocation scrips are very CI-centric, this PR
takes a few steps to make them more friendly to running in a dev
environment; mainly centered around not polluting global scope (keeping
filesystem mutations in a relative local directory).

- binaries (and kind kubeconfig) are installed in ./hack/bin
- adds /hack/bin to .gitignore
- binary paths can be overridden via env vars FUNC_TEST_{name}
- binary fallback is system-installed (when binaries.sh not run)
- Cleanup of the UX, including colors and some shared helpers via
  library.sh
- Removes `yq` as the hack that required it appears to no longer be necessary.
- Adds some notes for Nix users
- Better error messaging when !linux
- Refactors the installers to pipe directly to tar rather than touch
  disk.
- begin to standardize on hyphens in filenames
2024-04-02 08:29:03 +00:00
Matej Vašek c6548e68b7
Fix utils image build (#2258) 2024-03-29 09:55:48 +00:00
Matej Vašek db0a6edf3d
Setup test images before integration test run (#2250)
Signed-off-by: Matej Vašek <mvasek@redhat.com>
2024-03-27 16:33:37 +00:00
Matej Vašek 6b78b7f5c5
Improve utility image (#2246)
* The socat/tar image is now build in GH Actions.
* We use new tiny deploy binary for deployment instead of whole func.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2024-03-26 11:30:56 +00:00
Luke Kingland d3c24a22b2
remove redundant workflows (#2205) 2024-03-06 11:16:01 +00:00
Matthias Wessendorf c252c4f537
Springboot bumps (#2126)
* Making updates to Spring boot templates, as suggested by @trisberg

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* 🤖 We touched the samples, so adding the generated thing

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Bump JDK Builder to 21

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

* Some more java 21 setters

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>

---------

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
2024-01-22 18:45:03 +00:00
Matej Vasek 443b8f3d55
fix: use correct Go version in GH action (#2123)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2024-01-18 18:37:08 +00:00
David Simansky 4deb1ff219
chore: Add go setup as composite action (#2031) 2023-10-19 00:39:59 +00:00
Jefferson Ramos 3641bfe5d0
test improvements remove deprecates avoid nils, bump go version 1.20.x (#2032)
* test: improvements on e2e extended test: remove deprecates, avoid nils and improve match conditions

* update go version on ci to 1.20.x
2023-10-18 17:28:26 +00:00