Skip to content

Commit

Permalink
[#3540] Use Mongo 6.0 by default
Browse files Browse the repository at this point in the history
Unit and integration tests have been changed to use Mongo 6.0 by
default. CI workflow has been adapted to test against Mongo versions
4.4, 5.0, 6.0 and 7.0.

Support for Mongo 4.4 has been deprecated.

Fixes #3540
  • Loading branch information
sophokles73 committed Oct 7, 2023
1 parent 260c4f3 commit cb394ca
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 9 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020, 2022 Contributors to the Eclipse Foundation
# Copyright (c) 2020, 2023 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
Expand All @@ -24,20 +24,20 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
device-registry-name: [file,jdbc,mongodb-4.4,mongodb-5.0,mongodb-6.0]
device-registry-name: [file,jdbc,mongodb-4.4,mongodb-5.0,mongodb-6.0,mongodb-7.0]
include:
# Use Quarkus JVM images: file registry, AMQP messaging, Command Router with embedded cache
- device-registry-name: file
device-registry: file
commandrouting-cache: embedded
messaging-type: amqp
mongodb-image-name: mongo:4.4
mongodb-image-name: mongo:6.0
# Use Quarkus JVM images: jdbc registry, Kafka messaging, Command Router with embedded cache
- device-registry-name: jdbc
device-registry: jdbc
commandrouting-cache: embedded
messaging-type: kafka
mongodb-image-name: mongo:4.4
mongodb-image-name: mongo:6.0
# Use Quarkus JVM images: mongodb registry Kafka messaging, Command Router with data grid
- device-registry-name: mongodb-4.4
device-registry: mongodb
Expand All @@ -54,6 +54,11 @@ jobs:
commandrouting-cache: server
messaging-type: kafka
mongodb-image-name: mongo:6.0
- device-registry-name: mongodb-7.0
device-registry: mongodb
commandrouting-cache: server
messaging-type: kafka
mongodb-image-name: mongo:7.0

name: "Use ${{ matrix.device-registry-name }} registry, ${{ matrix.messaging-type }} messaging with ${{ matrix.commandrouting-cache }} cache"
steps:
Expand Down
2 changes: 1 addition & 1 deletion bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<kafka-client.version>3.3.2</kafka-client.version>
<kafka.image.name>docker.io/confluentinc/cp-kafka:7.3.5</kafka.image.name>
<logback.version>1.2.11</logback.version>
<mongodb-image.name>docker.io/library/mongo:4.4</mongodb-image.name>
<mongodb-image.name>docker.io/library/mongo:6.0</mongodb-image.name>
<native.image.name>quay.io/quarkus/quarkus-micro-image:2.0</native.image.name>
<native.builder-image.name>mandrel</native.builder-image.name>
<netty.version>4.1.94.Final</netty.version>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2020, 2022 Contributors to the Eclipse Foundation
* Copyright (c) 2020, 2023 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
Expand Down Expand Up @@ -33,7 +33,7 @@
public final class MongoDbTestUtils {

private static final MongoDBContainer MONGO_DB_CONTAINER;
private static final String MONGO_DB_IMAGE_NAME = System.getProperty("mongoDbImageName", "mongo:4.4");
private static final String MONGO_DB_IMAGE_NAME = System.getProperty("mongoDbImageName", "mongo:6.0");
private static final Logger LOG = LoggerFactory.getLogger(MongoDbTestUtils.class);

static {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ The registry is compatible and known to work with following MongoDB versions:
* [MongoDB 4.4](https://www.mongodb.com/docs/v4.4/release-notes/4.4/)
* [MongoDB 5.0](https://www.mongodb.com/docs/v5.0/release-notes/5.0/)
* [MongoDB 6.0](https://www.mongodb.com/docs/v6.0/release-notes/6.0/)
* [MongoDB 7.0](https://www.mongodb.com/docs/v7.0/release-notes/7.0/)

{{% notice info %}}
The registry had originally been implemented as a Spring Boot application. That variant has been removed in Hono 2.0.0.
{{% notice warning %}}
According to the [Mongo DB Software Lifecycle Schedule](https://www.mongodb.com/support-policy/lifecycles) support
for Mongo DB 4.4 will end Feb 2024. Consequently, support for Mongo 4.4 in Hono has been deprecated and will be removed
in a future version altogether. Users are encouraged to migrate to Mongo DB 6.0 or later.
{{% /notice %}}

## Service Configuration
Expand Down
10 changes: 10 additions & 0 deletions site/homepage/content/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ title = "What is new & noteworthy in Hono?"
description = "Information about changes in recent Hono releases. Includes new features, fixes, enhancements and API changes."
+++

## 2.5.0 (not released yet)

### Deprecations

* According to the [Mongo DB Software Lifecycle Schedule](https://www.mongodb.com/support-policy/lifecycles) support
for Mongo DB 4.4 will end Feb 2024.
Until that date the Mongo based Device Registry will be tested with MongoDB 4.4, 5.0, 6.0 and 7.0 in the CI workflows.
However, support for Mongo 4.4 in Hono has been deprecated and will be removed in a future version altogether.
Users are encouraged to migrate to Mongo DB 6.0 or later.

## 2.4.0

### New features
Expand Down

0 comments on commit cb394ca

Please sign in to comment.