Skip to content

Commit

Permalink
Release 0.21.0-alpha. (airbytehq#3001)
Browse files Browse the repository at this point in the history
* Remove no longer needed test setup.

* Bump version: 0.20.0-alpha → 0.21.0-alpha
  • Loading branch information
davinchia authored Apr 21, 2021
1 parent 42686ad commit e6d412e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.20.0-alpha
current_version = 0.21.0-alpha
commit = True
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-[a-z]+)?
Expand Down
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=0.20.0-alpha
VERSION=0.21.0-alpha
DATABASE_USER=docker
DATABASE_PASSWORD=docker
DATABASE_DB=airbyte
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class Migrations {
private static final Migration MIGRATION_V_0_18_0 = new MigrationV0_18_0(MIGRATION_V_0_17_0);
private static final Migration MIGRATION_V_0_19_0 = new NoOpMigration(MIGRATION_V_0_18_0, "0.19.0-alpha");
private static final Migration MIGRATION_V_0_20_0 = new MigrationV0_20_0(MIGRATION_V_0_19_0);
private static final Migration MIGRATION_V_0_21_0 = new NoOpMigration(MIGRATION_V_0_20_0, "0.21.0-alpha");

// all migrations must be added to the list in the order that they should be applied.
public static final List<Migration> MIGRATIONS = ImmutableList.of(
Expand All @@ -53,6 +54,7 @@ public class Migrations {
MIGRATION_V_0_17_0,
MIGRATION_V_0_18_0,
MIGRATION_V_0_19_0,
MIGRATION_V_0_20_0);
MIGRATION_V_0_20_0,
MIGRATION_V_0_21_0);

}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
import io.airbyte.api.client.model.DestinationCreate;
import io.airbyte.api.client.model.DestinationDefinitionIdRequestBody;
import io.airbyte.api.client.model.DestinationDefinitionSpecificationRead;
import io.airbyte.api.client.model.DestinationDefinitionUpdate;
import io.airbyte.api.client.model.DestinationIdRequestBody;
import io.airbyte.api.client.model.DestinationRead;
import io.airbyte.api.client.model.DestinationSyncMode;
Expand All @@ -69,7 +68,6 @@
import io.airbyte.api.client.model.SourceCreate;
import io.airbyte.api.client.model.SourceDefinitionIdRequestBody;
import io.airbyte.api.client.model.SourceDefinitionSpecificationRead;
import io.airbyte.api.client.model.SourceDefinitionUpdate;
import io.airbyte.api.client.model.SourceIdRequestBody;
import io.airbyte.api.client.model.SourceRead;
import io.airbyte.api.client.model.SyncMode;
Expand Down Expand Up @@ -162,19 +160,6 @@ public void setup() throws ApiException {

// seed database.
PostgreSQLContainerHelper.runSqlScript(MountableFile.forClasspathResource("postgres_init.sql"), sourcePsql);

// TODO(davin): Temporary use the dev image for schema tests. This will be removed once the version
// is released. The namespace change requires source, destination and normalization to all use the
// namespace field.
final var updateSrc = new SourceDefinitionUpdate()
.sourceDefinitionId(UUID.fromString("decd338e-5647-4c0b-adf4-da0e75f5a750")) // Postgres
.dockerImageTag("dev");
apiClient.getSourceDefinitionApi().updateSourceDefinition(updateSrc);

final var updateDst = new DestinationDefinitionUpdate()
.destinationDefinitionId(UUID.fromString("25c5221d-dce2-4163-ade9-739ef790f503")) // Postgres
.dockerImageTag("dev");
apiClient.getDestinationDefinitionApi().updateDestinationDefinition(updateDst);
}

@AfterEach
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/upgrading-airbyte.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ If you inadvertently upgrade to a version of Airbyte that is not compatible with
Here's an example of what might look like with the values filled in. It assumes that the downloaded `airbyte_archive.tar.gz` is in `/tmp`.

```bash
docker run --rm -v /tmp:/config airbyte/migration:0.20.0-alpha --\
docker run --rm -v /tmp:/config airbyte/migration:0.21.0-alpha --\
--input /config/airbyte_archive.tar.gz\
--output /config/airbyte_archive_migrated.tar.gz
```
Expand Down
5 changes: 0 additions & 5 deletions tools/bin/acceptance_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,5 @@ trap "echo 'docker-compose logs:' && docker-compose logs -t --tail 150 && docker
echo "Waiting for services to begin"
sleep 10 # TODO need a better way to wait

# This is temporary
echo "Build the necessary Postgres images"
./gradlew :airbyte-integrations:connectors:source-postgres:build
./gradlew :airbyte-integrations:connectors:destination-postgres:build

echo "Running e2e tests via gradle"
./gradlew --no-daemon :airbyte-tests:acceptanceTests --rerun-tasks --scan

0 comments on commit e6d412e

Please sign in to comment.