Skip to content

Commit

Permalink
Pekko becomes a TLP (apache#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Mar 23, 2024
1 parent 6484194 commit 6fbc6b7
Show file tree
Hide file tree
Showing 17 changed files with 30 additions and 43 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
matrix:
SCALA_VERSION: [ 2.12, 2.13 ]
JAVA_VERSION: [ 8, 11 ]
if: github.repository == 'apache/incubator-pekko-persistence-r2dbc'
if: github.repository == 'apache/pekko-persistence-r2dbc'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
test-postgres-scala3:
name: Run test with Postgres (Scala 3)
runs-on: ubuntu-latest
if: github.repository == 'apache/incubator-pekko-persistence-r2dbc'
if: github.repository == 'apache/pekko-persistence-r2dbc'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:
matrix:
SCALA_VERSION: [ 2.12, 2.13 ]
JAVA_VERSION: [ 8, 11 ]
if: github.repository == 'apache/incubator-pekko-persistence-r2dbc'
if: github.repository == 'apache/pekko-persistence-r2dbc'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
test-docs:
name: Docs
runs-on: ubuntu-latest
if: github.repository == 'apache/incubator-pekko-persistence-r2dbc'
if: github.repository == 'apache/pekko-persistence-r2dbc'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
dependency-graph:
name: Update Dependency Graph
runs-on: ubuntu-latest
if: github.repository == 'apache/incubator-pekko-persistence-r2dbc'
if: github.repository == 'apache/pekko-persistence-r2dbc'
steps:
- uses: actions/checkout@v4
- uses: scalacenter/sbt-dependency-submission@v2
2 changes: 1 addition & 1 deletion .github/workflows/link-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
validate-links:
runs-on: ubuntu-20.04
if: github.repository == 'apache/incubator-pekko-persistence-r2dbc'
if: github.repository == 'apache/pekko-persistence-r2dbc'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-1.0-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
publish-docs:
if: github.repository == 'apache/incubator-pekko-persistence-r2dbc'
if: github.repository == 'apache/pekko-persistence-r2dbc'
name: Publish 1.0 Docs
runs-on: ubuntu-20.04
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
publish:
# runs on main repo only
if: github.repository == 'apache/incubator-pekko-persistence-r2dbc'
if: github.repository == 'apache/pekko-persistence-r2dbc'
name: Publish
runs-on: ubuntu-20.04
env:
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ docker exec -it yb-tserver-n1 /home/yugabyte/bin/ysqlsh -h yb-tserver-n1
This is the process for committing code into main.

1. For non-trivial changes, you will be asked to sign the [CLA](https://www.apache.org/licenses/contributor-agreements.html) if you have not done so before.
2. Before starting to work on a feature or a fix, make sure that there is a ticket for your work in the [issue tracker](https://github.com/apache/incubator-pekko-persistence-r2dbc/issues). If not, create it first.
2. Before starting to work on a feature or a fix, make sure that there is a ticket for your work in the [issue tracker](https://github.com/apache/pekko-persistence-r2dbc/issues). If not, create it first.
3. Perform your work according to the [pull request requirements](#pull-request-requirements).
4. When the feature or fix is completed you should open a [Pull Request](https://help.github.com/articles/using-pull-requests) on [GitHub](https://github.com/apache/incubator-pekko-persistence-r2dbc/pulls).
4. When the feature or fix is completed you should open a [Pull Request](https://help.github.com/articles/using-pull-requests) on [GitHub](https://github.com/apache/pekko-persistence-r2dbc/pulls).
5. The Pull Request should be reviewed by other maintainers (as many as feasible/practical). Outside contributors are encouraged to participate in the review process, it is not a closed process.
6. After the review you should fix the issues (review comments, CI failures) by pushing a new commit for new review, iterating until the reviewers give their thumbs up and CI tests pass.
7. If the branch merge conflicts with its target, rebase your branch onto the target branch.
Expand Down
10 changes: 0 additions & 10 deletions DISCLAIMER

This file was deleted.

2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Apache Pekko (Incubating) Persistence R2DBC
Apache Pekko Persistence R2DBC
Copyright 2022-2024 The Apache Software Foundation

This product includes software developed at
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ store for SQL databases with RD2BC connectivity.

## Project status

Version 1.0.0 has been released. Any contributions are welcome. Please observe the [Code of Conduct](https://github.com/apache/incubator-pekko-persistence-r2dbc?tab=coc-ov-file#readme).
Version 1.0.0 has been released. Any contributions are welcome. Please observe the [Code of Conduct](https://github.com/apache/pekko-persistence-r2dbc?tab=coc-ov-file#readme).

## Documentation

Expand All @@ -15,10 +15,10 @@ Version 1.0.0 has been released. Any contributions are welcome. Please observe t

There are several ways to interact with the Pekko community:

- [GitHub discussions](https://github.com/apache/incubator-pekko-persistence-jdbc/discussions): for questions and general discussion.
- [GitHub discussions](https://github.com/apache/pekko-persistence-jdbc/discussions): for questions and general discussion.
- [Pekko dev mailing list](https://lists.apache.org/list.html?dev@pekko.apache.org): for Pekko development discussions.
- [Pekko users mailing list](https://lists.apache.org/list.html?users@pekko.apache.org): for Pekko user discussions.
- [GitHub issues](https://github.com/apache/incubator-pekko-persistence-r2dbc/issues): for bug reports and feature requests. Please search the existing issues before creating new ones. If you are unsure whether you have found a bug, consider asking in GitHub discussions or the mailing list first.
- [GitHub issues](https://github.com/apache/pekko-persistence-r2dbc/issues): for bug reports and feature requests. Please search the existing issues before creating new ones. If you are unsure whether you have found a bug, consider asking in GitHub discussions or the mailing list first.

## License

Expand Down
10 changes: 5 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import sbt.Keys.parallelExecution

ThisBuild / versionScheme := Some(VersionScheme.SemVerSpec)
sourceDistName := "apache-pekko-persistence-r2dbc"
sourceDistIncubating := true
sourceDistIncubating := false

ThisBuild / pekkoInlineEnabled := false
ThisBuild / reproducibleBuildsCheckResolver := Resolver.ApacheMavenStagingRepo
Expand All @@ -24,14 +24,14 @@ inThisBuild(
Seq(
scmInfo := Some(
ScmInfo(
url("https://github.com/apache/incubator-pekko-persistence-r2dbc"),
"https://github.com/apache/incubator-pekko-persistence-r2dbc.git")),
url("https://github.com/apache/pekko-persistence-r2dbc"),
"https://github.com/apache/pekko-persistence-r2dbc.git")),
startYear := Some(2022),
developers += Developer(
"contributors",
"Contributors",
"dev@pekko.apache.org",
url("https://github.com/apache/incubator-pekko-persistence-r2dbc/graphs/contributors")),
url("https://github.com/apache/pekko-persistence-r2dbc/graphs/contributors")),
description := "An Apache Pekko Persistence implementation backed by SQL database with R2DBC",
// add snapshot repo when Pekko version overridden
resolvers ++=
Expand Down Expand Up @@ -84,7 +84,7 @@ lazy val docs = project
libraryDependencies ++= Dependencies.docs,
previewPath := (Paradox / siteSubdirName).value,
Paradox / siteSubdirName := s"docs/pekko-persistence-r2dbc/${projectInfoVersion.value}",
pekkoParadoxGithub := Some("https://github.com/apache/incubator-pekko-persistence-r2dbc"),
pekkoParadoxGithub := Some("https://github.com/apache/pekko-persistence-r2dbc"),
paradoxGroups := Map("Language" -> Seq("Java", "Scala")),
Compile / paradoxProperties ++= Map(
"project.url" -> "https://pekko.apache.org/docs/pekko-persistence-r2dbc/current/",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/paradox/contributing.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing

Please feel free to contribute to Apache Pekko Persistence R2DBC and the documentation by reporting issues you identify, or by suggesting changes to the code.
Please refer to our [contributing instructions](https://github.com/apache/incubator-pekko-persistence-r2dbc/blob/main/CONTRIBUTING.md) to learn how it can be done.
Please refer to our [contributing instructions](https://github.com/apache/pekko-persistence-r2dbc/blob/main/CONTRIBUTING.md) to learn how it can be done.

We want the Apache Pekko community to have a welcoming and open atmosphere and expect all contributors to respect our [code of conduct](https://www.apache.org/foundation/policies/conduct.html).
2 changes: 1 addition & 1 deletion docs/src/main/paradox/migration-guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ These migration notes are designed for users migrating from Akka Persistence R2D
and assume a basic level of Akka experience. Please feel free to submit an issue or a patch if you feel like the notes can be improved.

One of the main differences is that the database tables used by `pekko-projection-r2dbc` have been renamed to
remove the `akka` prefixes ([PR71](https://github.com/apache/incubator-pekko-persistence-r2dbc/pull/71)).
remove the `akka` prefixes ([PR71](https://github.com/apache/pekko-persistence-r2dbc/pull/71)).

The table names that `pekko-projection-r2dbc` expects to find can be changed using [configuration settngs](https://github.com/lightbend/config).

Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/paradox/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The Pekko Persistence R2DBC plugin allows for using SQL database with R2DBC as a
Currently, the R2DBC plugin has support for [PostgreSQL](https://www.postgresql.org) and [Yugabyte](https://www.yugabyte.com).
It is specifically designed to work well for distributed SQL databases.

[Create an issue](https://github.com/apache/incubator-pekko-persistence-r2dbc/issues) if you would like to @ref[contribute](contributing.md)
[Create an issue](https://github.com/apache/pekko-persistence-r2dbc/issues) if you would like to @ref[contribute](contributing.md)
support for other databases that has a [R2DBC driver](https://r2dbc.io/drivers/).

@@@ warning
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/paradox/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ We haven't had to fix any significant bugs that were in Akka Persistence R2DBC 0

### Changes

* Changed the table names in the DDL schemas to remove the akka/pekko prefixes ([PR71](https://github.com/apache/incubator-pekko-persistence-r2dbc/pull/71))
* Changed the table names in the DDL schemas to remove the akka/pekko prefixes ([PR71](https://github.com/apache/pekko-persistence-r2dbc/pull/71))

### Additions

Expand Down
3 changes: 0 additions & 3 deletions project/MetaInfLicenseNoticeCopy.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ object MetaInfLicenseNoticeCopy extends AutoPlugin {

private lazy val baseDir = LocalRootProject / baseDirectory

override lazy val projectSettings = Seq(
apacheSonatypeDisclaimerFile := Some(baseDir.value / "DISCLAIMER"))

override def trigger = allRequirements

override def requires = ApacheSonatypePlugin
Expand Down
6 changes: 3 additions & 3 deletions project/project-info.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ project-info {
shared-info {
jdk-versions: ["OpenJDK 8", "OpenJDK 11", "OpenJDK 17"]
issues: {
url: "https://github.com/apache/incubator-pekko-persistence-r2dbc/issues"
url: "https://github.com/apache/pekko-persistence-r2dbc/issues"
text: "Github issues"
}
release-notes: {
url: "https://github.com/apache/incubator-pekko-persistence-r2dbc/releases"
url: "https://github.com/apache/pekko-persistence-r2dbc/releases"
text: "Github releases"
}
forums: [
Expand All @@ -21,7 +21,7 @@ project-info {
}
{
text: "Github Discussions"
url: "https://github.com/apache/incubator-pekko-persistence-r2dbc/discussions"
url: "https://github.com/apache/pekko-persistence-r2dbc/discussions"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ private[projection] class R2dbcOffsetStore(
if (newInflight.size >= 10000) {
throw new IllegalStateException(
s"Too many envelopes in-flight [${newInflight.size}]. " +
"Please report this issue at https://github.com/apache/incubator-pekko-persistence-r2dbc")
"Please report this issue at https://github.com/apache/pekko-persistence-r2dbc")
}
if (!inflight.compareAndSet(currentInflight, newInflight))
cleanupInflight(newState) // CAS retry, concurrent update of inflight
Expand Down Expand Up @@ -701,7 +701,7 @@ private[projection] class R2dbcOffsetStore(
new IllegalStateException(
s"Rejected envelope from backtracking, persistenceId [$pid], seqNr [$seqNr] " +
"due to unexpected sequence number. " +
"Please report this issue at https://github.com/apache/incubator-pekko-persistence-r2dbc"))
"Please report this issue at https://github.com/apache/pekko-persistence-r2dbc"))
}
} else if (seqNr == 1) {
// always accept first event if no other event for that pid has been seen
Expand Down Expand Up @@ -732,7 +732,7 @@ private[projection] class R2dbcOffsetStore(
throw new IllegalStateException(
s"Rejected envelope from backtracking, persistenceId [$pid], seqNr [$seqNr], " +
"due to unknown sequence number. " +
"Please report this issue at https://github.com/apache/incubator-pekko-persistence-r2dbc")
"Please report this issue at https://github.com/apache/pekko-persistence-r2dbc")
}
case None =>
// previous not found, could have been deleted
Expand Down Expand Up @@ -1007,7 +1007,7 @@ private[projection] class R2dbcOffsetStore(
case change: DurableStateChange[_] if change.offset.isInstanceOf[TimestampOffset] =>
// FIXME case DeletedDurableState when that is added
throw new IllegalArgumentException(
s"DurableStateChange [${change.getClass.getName}] not implemented yet. Please report bug at https://github.com/apache/incubator-pekko-persistence-r2dbc/issues")
s"DurableStateChange [${change.getClass.getName}] not implemented yet. Please report bug at https://github.com/apache/pekko-persistence-r2dbc/issues")
case _ => None
}
}
Expand Down

0 comments on commit 6fbc6b7

Please sign in to comment.