Commit Graph

419 Commits

Author SHA1 Message Date
Armel Soro
fc2ffce43a Stop testing binding-related code since the Service Binding Operator has been deprecated [1]
Also add warning notes to the corresponding command reference pages.

This section used to cause a bunch of flaky tests,
even if it hasn't seen any changes over the past months/years.

[1] https://redhat-developer.github.io/service-binding-operator/userguide/intro.html
2024-07-18 00:08:12 +02:00
Armel Soro
85926ff88a chore(CI): Fix potentially flaky tests 2024-06-28 14:41:47 +02:00
Armel Soro
cd346c5e6c Bump version to 3.16.1
This is to try a workaround for an internal build issue
2024-06-18 08:53:18 +02:00
Armel Soro
167aec1892 Bump version to 3.16.0 (#7247) 2024-06-17 09:46:46 +00:00
Armel Soro
2508cf7362 Run only of asubset of the integration tests in OpenShift CI
Rationale: All of the integration tests are already covered in GitHb CI
(using Kubernetes), and they tend to be a bit flaky on OpenShift.
2024-05-18 09:15:33 +02:00
Armel Soro
3bfebaa4e6 Revert "Run only E2E tests on OpenShift CI"
This reverts commit 133356ae44.
2024-05-17 11:11:22 +02:00
Armel Soro
133356ae44 Run only E2E tests on OpenShift CI
Integration tests are already covered a lot by the CI on GitHub and tend to be somewhat flaky on OpenShift. We don't need to run them all on OpenShift.
2024-05-08 15:32:59 +02:00
Armel Soro
244e5ccca0 Make Interop tests rely on mock Devfile Registry Server started in the tests
The goal is to decommission the long-running IBM Clusters,
for cost purposes.
2023-12-01 15:44:47 +01:00
Armel Soro
5d4a6ef325 Use staging Devfile registry for PR tests (#7129)
* Revert using a DEVFILE_PROXY env var

There is no proxy deployed in the internal test cluster.
As such, this env var no longer makes sense.

* To help troubleshoot, display the resolved Devfile registry URL

* Make interactive tests more resilient with stack versions

They are now able to determine if the "Select version" prompt
should be asked by "odo init" or not:

* Make sure doc automation tests do not rely on hard-coded namespaces

* Allow to run doc automation tests with more parallel Ginkgo nodes

This is possible now that those tests no longer
depend on a single hard-coded namespace.

* Remove occurrences of the DEVFILE_REGISTRY env var in IBM Pipelines scripts

* Reuse logic for determining the Devfile Registry URL in "odo registry" tests

* Clarify what openshiftci-config.sh is used for
2023-10-27 07:54:14 +00:00
Armel Soro
4d6a785cff Review and update OWNERS files 2023-10-23 14:29:20 +02:00
Philippe Martin
10b5e8a8f5 Bump to v3.15.0 (#7096) 2023-09-26 03:39:55 -04:00
Armel Soro
725a64014a Display Git commit ID in output of odo commands where the version is shown (#7074)
* Display Git commit ID in output of odo commands where the version is displayed

This covers:
- odo init
- odo dev
- odo deploy

Displaying the commit ID (same as in `odo version`) will help quickly pinpoint the exact commit without having to run `odo version`.

See #6131 for more context

* Append the state of the working tree next to the Git commit ID

`git describe` is much more helpful to quickly understand the state of the working tree.

For backward compatibility, we are defaulting to `git rev-parse`,
just in case `git describe` does not work correctly.

* Fix integration tests

* Fix doc automation tests

Strip the Git commit ID from the full odo version string
prior to comparing the outputs.
We still want to compare the tag displayed.
2023-09-06 20:36:13 +02:00
Armel Soro
471928fead Bump version to 3.14.0 (#7038) 2023-08-22 11:38:04 -02:30
Philippe Martin
0d1cf6e365 Bump to version 3.13.0 (#7000) 2023-07-24 10:52:16 +02:00
Armel Soro
df07ac8a24 Clean up OWNERS files (#6997)
This makes sure the list is accurate, to avoid requesting PR reviews
from people no longer maintaining the project.
Ideally, I would put a GitHub team,
but this does not seem to be supported [1].
It can be done via an additional OWNERS_ALIASES file [2],
but this is yet to be tested.

[1] https://www.kubernetes.dev/docs/guide/owners/
[2] https://www.kubernetes.dev/docs/guide/owners/#owners_aliases
2023-07-21 14:27:24 +02:00
Philippe Martin
251648998c Serve SwaggerUI (#6989)
* Serve SwaggerUI

* Add api server doc

* Copy swagger.yaml when running `make install`

* Check swagger.yaml if up-to-date

* Script to copy swagger-ui files
2023-07-21 10:39:31 +02:00
Armel Soro
97644aac7c Fix CI Devfile Registry URL used in OCP interop tests (#6946) 2023-07-03 09:05:18 -04:00
Philippe Martin
6a4e964d5e Move from github.com/feloy/devfile-builder (#6937)
* Move from github.com/feloy/devfile-builder

* Update .github/workflows/ui-e2e.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

---------

Co-authored-by: Armel Soro <armel@rm3l.org>
2023-06-29 11:06:02 +02:00
Armel Soro
c0127ce201 Bump version to 3.12.0 (#6935) 2023-06-27 18:07:21 +02:00
Philippe Martin
ae28de1012 Disable service binding related integration tests (#6920)
* check SKIP_SERVICE_BINDING_TESTS to skip service binding tests

* Pass SKIP_SERVICE_BINDING_TESTS to Windows for Windows tests

* Use fsGroup on Kubernetes

* add instructions to install devfile registry in cluster
2023-06-23 18:20:46 +02:00
Armel Soro
4bc066819d Fix GitHub labels in release changelog generator script and PR template (#6916)
* Rename 'kind/code-refactoring' label into 'area/refactoring' in changelog generator script

* Update GitHub PR template
2023-06-21 11:11:18 +02:00
Philippe Martin
cd9cc55c26 Send tests results to Sheet (#6873)
* Send tests results to Sheet

* Save tests from Windows tests + do not fail if junit file not found

* Change package name

* Remove cleanup old entries (keeping implementation)

* Add job number
2023-06-16 08:34:47 -04:00
Philippe Martin
b481d4c410 Bump version 3.11.0 (#6852)
* Bump to version 3.11.0

* Update docs with v3.11.0
2023-05-30 07:26:48 -04:00
Philippe Martin
9a239c4e77 Use a single handler for executing all commands (#6826)
* Document current implementations of command handlers

* Add unit tests for execHAndler

* Refactor pkg/devfile/image to inject Backend as dependency

* Use same handler for kubedev/podmandev

* Fail after SelectBackend==nil only if backend is needed

* Move runHandler to dev/common

* Unit tests for runHandler

* Create a component.ExecuteTerminatingCommand

* ExecuteTerminatingCommand/ExecuteNonTerminatingCommand for Handler

* Fix calling other command types

* Consider parent group to determine if a command is terminating

* Replace component.execHandler by common.runHandler

* Remove execHandler

* Make runHandler and most of fields private and pass containersRunning to handler

* Pass containersRunning value

* deploy using common Handler

* Fix tests

* Use specific Dev/Deploy mode for Apply

* Fix cmdline for job

* Fix unit tests

* Pass appName and componentName with ctx to handler

* Move handler to pkg/component package

* Update doc

* Unit tests Deploy

* Unit tests Build

* Unit tests Run

* Unit tests PostStart

* Unit tests PreStop

* Update doc

* Fix Podman tests

* Fix hotReload on podman

* Change podman version timeout to 30s for tests

* Cleanup + fix doc
2023-05-26 11:01:21 -04:00
ritudes
63bf76a30a Updating the oudated release script (#6801)
* Updating the oudated release script

Signed-off-by: Ritu Deshmukh <rideshmu@redhat.com>

* Update release-bit-verification.sh

* Update scripts/release-bit-verification.sh

Co-authored-by: Armel Soro <armel@rm3l.org>

* Update scripts/release-bit-verification.sh

Co-authored-by: Armel Soro <armel@rm3l.org>

* Update release-bit-verification.sh

* Update release-bit-verification.sh

* Update release-bit-verification.sh

* Update release-bit-verification.sh

* Update release-bit-verification.sh

---------

Signed-off-by: Ritu Deshmukh <rideshmu@redhat.com>
Co-authored-by: Armel Soro <armel@rm3l.org>
2023-05-23 09:23:50 -04:00
Philippe Martin
db35b572ee Only run cluster tests on nightly tests, not nocluster tests (#6825) 2023-05-22 12:04:41 -04:00
Anand Kumar Singh
7ff460bc62 seperate ansible scripts (#6484)
* ansible scripts for infra automation, and workflow for applying and testing changes

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* fix

Signed-off-by: anandrkskd <ansingh@redhat.com>

* fix

Signed-off-by: anandrkskd <ansingh@redhat.com>

* rename requirements.yaml

Signed-off-by: anandrkskd <ansingh@redhat.com>

* change permissions

Signed-off-by: anandrkskd <ansingh@redhat.com>

* update cluster version

Signed-off-by: anandrkskd <ansingh@redhat.com>

---------

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
Signed-off-by: anandrkskd <ansingh@redhat.com>
2023-05-11 10:55:25 -04:00
Parthvi Vala
039ef07320 Bump version to 3.10.0 (#6783)
Signed-off-by: Parthvi Vala <pvala@redhat.com>
2023-05-02 10:04:54 -04:00
Philippe Martin
7a721348b3 Automount volumes (#6698)
* Simplify AddOdoProjectVolume and AddOdoMandatoryVolume

* Rename / Clarify HandleEphemeralStorage function

* Regroup volume-specific code

* Move volume specific code to a separated function

* Add a new module configAutomount

* Automount PVC (without options)

* Add unit tests

* Separate functions

* Mount secrets

* Mount configmaps

* Specific mount path

* MountAs annotation

* Mounting cm/secret as env

* Refacto: use inAllContainers + replace result with volume

* Mounting cm/secret as subpath

* Read-only

* Integration tests

* Rename label

* Automount during odo deploy Exec command

* Add documentation

* Fix TODO

* Review

* Fix indentation

* Rename labels/annotations
2023-04-18 07:58:45 -04:00
Parthvi Vala
431725543a Revert "Add DEVFILE_REGISTRY env var for periodic tests (#6709)" (#6725)
* Revert "Add DEVFILE_REGISTRY env var for periodic tests (#6709)"

This reverts commit f0bf9ee1dd.

* Use IBM Devfile registry for InterOP testing

Signed-off-by: Parthvi Vala <pvala@redhat.com>

---------

Signed-off-by: Parthvi Vala <pvala@redhat.com>
2023-04-12 07:21:57 -04:00
Armel Soro
8cb53c2a04 Bump version to 3.9.0 (#6717) 2023-04-05 05:06:19 -04:00
Philippe Martin
f0bf9ee1dd Add DEVFILE_REGISTRY env var for periodic tests (#6709)
* Add DEVFILE_REGISTRY env var for periodic tests

* Add SBO tests
2023-04-03 11:47:29 -04:00
Philippe Martin
235539dfe9 Get DEVFILE_REGISTRY value for tests, to use local Registry (#6705)
* Get DEVFILE_REGISTRY value for tests

* Pass DEVFILE_REGISTRY to Windows tests

* Add values for devfile registry Helm deployment
2023-03-31 12:13:35 -04:00
Philippe Martin
9c592c4f04 Bump to v3.8.0 (#6634) 2023-03-08 08:49:27 +01:00
Parthvi Vala
ef6489c424 Add mockgen installation to the script (#6604)
* Add mockgen installation to the script

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Use go install -mod=readonly instead of installing the binary

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Add mockgen installation to goget-tools target incase the user wants to run the script individually

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Update Makefile

Co-authored-by: Armel Soro <armel@rm3l.org>

---------

Signed-off-by: Parthvi Vala <pvala@redhat.com>
Co-authored-by: Armel Soro <asoro@redhat.com>
Co-authored-by: Armel Soro <armel@rm3l.org>
2023-03-06 15:01:57 +01:00
Armel Soro
34c2728bdc Make the bump-version.sh also update version in documentation sample outputs (#6608) 2023-02-21 17:17:56 +01:00
ritudes
188d7e1548 Adding ritudes user id to tests/OWNERS (#6603)
* Adding my id to OWNERS file

* Adding ritudes-user id to scripts/OWNERS
2023-02-17 11:59:53 +01:00
Armel Soro
7b9f214299 Bump Go to 1.19 (#6586)
* Set Go version in go.mod

go mod edit -go=1.19

* Fix formatting issues reported by gofmt

* Fix SA1019 check (usage of deprecated "io/ioutil"), reported by golangci-lint

SA1019: "io/ioutil" has been deprecated since Go 1.16:
As of Go 1.16, the same functionality is now provided by package io or package os,
and those implementations should be preferred in new code.
See the specific function documentation for details. (staticcheck)

* Use Go 1.19 in our Dockerfiles

* Use Go 1.19 in the rpm-prepare.sh script

* Update the tag for the IBM Cloud CI image
2023-02-16 09:03:48 -05:00
Armel Soro
262d11e3ef Bump version to v3.7.0 (#6596)
* Bump version to v3.7.0

* Update odo version in sample outputs diplayed in the documentation
2023-02-15 08:34:25 -05:00
Parthvi Vala
5b4959272f Version bump to 3.6.0 (#6528)
Signed-off-by: Parthvi Vala <pvala@redhat.com>

Signed-off-by: Parthvi Vala <pvala@redhat.com>
2023-01-24 02:49:55 -05:00
Philippe Martin
b98c4e2f5c Bump to v3.5.0 (#6450) 2023-01-04 05:29:37 -05:00
Armel Soro
3cf729c346 Bump version to v3.4.0 (#6404) 2022-12-13 10:07:51 -05:00
Anand Kumar Singh
bb911ea3fa copy aritifacts only if ARTIFACT_DIR var is exposed (#6402)
Signed-off-by: anandrkskd <anandrkskd@gmail.com>

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-12-13 05:00:45 -05:00
Anand Kumar Singh
3738ca8d65 updating bindable kind instance (#6363)
* updating bindable kind instance

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* update ansible yaml to use 1.18 for postgres operator

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-12-06 04:56:10 -05:00
Parthvi Vala
1d315866b6 Bump odo version to v3.3.0 (#6325) 2022-11-22 03:13:57 -05:00
Philippe Martin
20ea3a2043 Podman dev (#6183)
* Add runOn flag

* Instantiate Kube/Podman DevClient instance according to runOn flag

* Start and stop Podman Pod

* Unit tests for createPodFromComponent

* podman mode runs without Kube config

* Fix tests + rebase

* Add sync and exec clients to podman dev

* tbc: call sync

* Remove unnecessary kclient dependency from exec client

* Inject podman client

* Implement ExecCMDInContainer for podman client

* Move [gG]etFirstContainerWithSourceVolume to dev/common package and use it for Podman

* TBC: execute build/run commands

* Fix rebase

* Fix unit test

* Comments for refacto

* Prepare implementation of Platform

* Use ExecuteRunCommand for run handler

* Do not pass parameters present in context

* Move back instanciation of devclient to clientset package

* Move CleanupDevResources method from Watch to Dev package

* CleanupResources: Do not pass parameters present in context

* Fix deleting volumes at exit time

* Check volumes do not exist

* Add support for postStart event

* Make odo dev work when no cluster is configured

* Review

* Add more TODOs

* User interface

* More info on ExitError errors

* Display forwarded ports in output and devstate file

* Add tests for forwarded ports

* Create .odo when necessary

* Add keyboard commands message

* Add doc on podman platform
2022-11-21 08:56:44 -05:00
Anand Kumar Singh
ce42ce435e InterOP: enable test report generation for tests (#6307)
* enable test report generation for tests

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* add test-reports to gitignore

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-11-16 20:22:49 +00:00
Philippe Martin
67272fd81d Remove localconfigLocalConfigProvider abstraction (#6285)
* Remove localconfigLocalConfigProvider abstraction

* Remove LocalConfigProvider interface

* Move LocalStorage to pkg/storage (with ListStorage)
2022-11-16 12:33:29 +00:00
Anand Kumar Singh
f96c35ac0e fix login failure on interop tests with error: x509 (#6288)
* fix login failure on interop tests with error: x509

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

* update script

Signed-off-by: anandrkskd <anandrkskd@gmail.com>

Signed-off-by: anandrkskd <anandrkskd@gmail.com>
2022-11-09 12:30:02 -05:00
Dharmit Shah
f062c11a11 Update odo to use go 1.18 (#6166)
* Update odo to use go 1.18

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

* Update golangci-lint version in Makefile

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

* Use go 1.18, not go 1.19

Erroneously I had used go 1.19 at various places.

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

* Rearrange imports; fix golangci-lint errors

Fixed a bunch of golangci-lint errors like below:

`File is not `gofmt`-ed with `-s``

using the command: `golangci-lint run --fix`

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

* Use go install instead of go get

This is because with go 1.18, `go get` behaves as `go get -d` by
default. Which means that it will only download, but not install.

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>

Signed-off-by: Dharmit Shah <shahdharmit@gmail.com>
2022-11-09 05:31:38 -05:00