Skip to content

Commit

Permalink
chore: clear alipay refs (#1252)
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun authored Dec 26, 2023
1 parent d3ebf28 commit 74383c5
Show file tree
Hide file tree
Showing 21 changed files with 45 additions and 63 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ body:
attributes:
label: Search before asking
description: >
Please make sure to search in the [issues](https://github.com/alipay/fury/issues) first to see whether the same issue was reported already.
Please make sure to search in the [issues](https://github.com/apache/incubator-fury/issues) first to see whether the same issue was reported already.
options:
- label: >
I had searched in the [issues](https://github.com/apache/alipay/issues) and found no similar issues.
I had searched in the [issues](https://github.com/apache/incubator-fury/issues) and found no similar issues.
required: true
- type: textarea
attributes:
Expand Down
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
Thank you for your contribution!
Please review https://github.com/alipay/fury/blob/main/CONTRIBUTING.rst before opening a pull request.
Please review https://github.com/apache/incubator-fury/blob/main/CONTRIBUTING.rst before opening a pull request.
-->

## What do these changes do?
Expand All @@ -16,4 +16,4 @@ Closes #xxxx
## Check code requirements

- [ ] tests added / passed (if needed)
- [ ] Ensure all linting tests pass, see [here](https://github.com/alipay/fury/blob/main/CONTRIBUTING.rst) for how to run them
- [ ] Ensure all linting tests pass, see [here](https://github.com/apache/incubator-fury/blob/main/CONTRIBUTING.rst) for how to run them
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# How to contribute to Fury
## Finding good first issues 🔎
See [Good First Issue](https://github.com/alipay/fury/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) for open good first issues.
See [Good First Issue](https://github.com/apache/incubator-fury/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) for open good first issues.

## How to create an issue
See https://github.com/alipay/fury/issues for open issues.
See https://github.com/apache/incubator-fury/issues for open issues.

## Testing 🧪
### Python
Expand Down Expand Up @@ -114,7 +114,7 @@ cygdb build
```

### C++ debug
See [cpp_debug](https://github.com/alipay/fury/blob/main/docs/cpp_debug.md) doc.
See [cpp_debug](https://github.com/apache/incubator-fury/blob/main/docs/cpp_debug.md) doc.

### Debug Crash
Enable core dump on Macos Monterey 12.1
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<img width="65%" alt="" src="docs/images/logo/fury_github_banner.png"><br>
</div>

[![Build Status](https://img.shields.io/github/actions/workflow/status/alipay/fury/ci.yml?branch=main&style=for-the-badge&label=GITHUB%20ACTIONS&logo=github)](https://github.com/alipay/fury)
[![Build Status](https://img.shields.io/github/actions/workflow/status/apache/incubator-fury/ci.yml?branch=main&style=for-the-badge&label=GITHUB%20ACTIONS&logo=github)](https://github.com/apache/incubator-fury)
[![Twitter](https://img.shields.io/twitter/follow/fury_community?logo=twitter&style=for-the-badge)](https://twitter.com/fury_community)


Expand Down Expand Up @@ -60,7 +60,7 @@ Title containing "compatible" represent schema compatible mode: support type for

Title without "compatible" represent schema consistent mode: class schema must be the same between serialization and deserialization.

`Struct` is a class with [100 primitive fields](https://github.com/alipay/fury/tree/main/docs/benchmarks#Struct), `MediaContent` is a class from [jvm-serializers](https://github.com/eishay/jvm-serializers/blob/master/tpc/src/data/media/MediaContent.java), `Sample` is a class from [kryo benchmark](https://github.com/EsotericSoftware/kryo/blob/master/benchmarks/src/main/java/com/esotericsoftware/kryo/benchmarks/data/Sample.java).
`Struct` is a class with [100 primitive fields](https://github.com/apache/incubator-fury/tree/main/docs/benchmarks#Struct), `MediaContent` is a class from [jvm-serializers](https://github.com/eishay/jvm-serializers/blob/master/tpc/src/data/media/MediaContent.java), `Sample` is a class from [kryo benchmark](https://github.com/EsotericSoftware/kryo/blob/master/benchmarks/src/main/java/com/esotericsoftware/kryo/benchmarks/data/Sample.java).

<p align="center">
<img width="24%" alt="" src="docs/benchmarks/compatible/bench_serialize_compatible_STRUCT_to_directBuffer_tps.png">
Expand All @@ -76,7 +76,7 @@ Title without "compatible" represent schema consistent mode: class schema must b
<img width="24%" alt="" src="docs/benchmarks/deserialization/bench_deserialize_SAMPLE_from_array_tps.png">
</p>

See [benchmarks](https://github.com/alipay/fury/tree/main/docs/benchmarks) for more benchmarks about type forward/backward compatibility, off-heap support, zero-copy serialization.
See [benchmarks](https://github.com/apache/incubator-fury/tree/main/docs/benchmarks) for more benchmarks about type forward/backward compatibility, off-heap support, zero-copy serialization.

## Installation
### Java
Expand Down Expand Up @@ -138,11 +138,11 @@ npm install @furyjs/fury

### Golang
```bash
go get github.com/alipay/fury/go/fury
go get github.com/apache/incubator-fury/go/fury
```

## Quickstart
Here we give a quick start about how to use fury, see [user guide](https://github.com/alipay/fury/blob/main/docs/README.md) for more details about [java](https://github.com/alipay/fury/blob/main/docs/guide/java_object_graph_guide.md), [cross language](https://github.com/alipay/fury/blob/main/docs/guide/xlang_object_graph_guide.md), and [row format](https://github.com/alipay/fury/blob/main/docs/guide/row_format_guide.md).
Here we give a quick start about how to use fury, see [user guide](https://github.com/apache/incubator-fury/blob/main/docs/README.md) for more details about [java](https://github.com/apache/incubator-fury/blob/main/docs/guide/java_object_graph_guide.md), [cross language](https://github.com/apache/incubator-fury/blob/main/docs/guide/xlang_object_graph_guide.md), and [row format](https://github.com/apache/incubator-fury/blob/main/docs/guide/row_format_guide.md).

### Fury java object graph serialization
If you don't have cross-language requirements, using this mode will
Expand Down Expand Up @@ -252,7 +252,7 @@ print(fury.deserialize(data))
```go
package main

import furygo "github.com/alipay/fury/go/fury"
import furygo "github.com/apache/incubator-fury/go/fury"
import "fmt"

func main() {
Expand Down Expand Up @@ -352,12 +352,12 @@ print(foo_row.f2[100000], foo_row.f4[100000].f1, foo_row.f4[200000].f2[5])
### Schema Compatibility
Fury java object graph serialization support class schema forward/backward compatibility. The serialization peer and deserialization peer can add/delete fields independently.

We plan to add support cross-language serialization after [meta compression](https://github.com/alipay/fury/issues/203) is finished.
We plan to add support cross-language serialization after [meta compression](https://github.com/apache/incubator-fury/issues/203) is finished.

### Binary Compatibility
We are still improving our protocols, binary compatibility is not ensured between fury major releases for now.
it's ensured between minor versions only. Please
`versioning` your data by fury major version if you will upgrade fury in the future, see [how to upgrade fury](https://github.com/alipay/fury/blob/main/docs/guide/java_object_graph_guide.md#upgrade-fury) for further details.
`versioning` your data by fury major version if you will upgrade fury in the future, see [how to upgrade fury](https://github.com/apache/incubator-fury/blob/main/docs/guide/java_object_graph_guide.md#upgrade-fury) for further details.

Binary compatibility will be ensured when fury 1.0 is released.

Expand Down
18 changes: 0 additions & 18 deletions SECURITY.md

This file was deleted.

2 changes: 1 addition & 1 deletion ci/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ elif [ "${1-}" == '--all' ]; then
else
# Add the origin remote if it doesn't exist
if ! git remote -v | grep -q origin; then
git remote add 'origin' 'https://github.com/alipay/fury.git'
git remote add 'origin' 'https://github.com/apache/incubator-fury.git'
fi

# use unshallow fetch for `git merge-base origin/main HEAD` to work.
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ order: 6

## Get the source code

Github repo: https://github.com/alipay/fury
Github repo: https://github.com/apache/incubator-fury

## Building Fury 🏋🏿‍♀️

Expand Down
6 changes: 3 additions & 3 deletions docs/guide/scala_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fury.register(Class.forName("scala.Enumeration.Val"))
If you want to avoid such registration, you can disable class registration by `FuryBuilder#requireClassRegistration(false)`.
Note that this option allow to deserialize objects unknown types, more flexible but may be insecure if the classes contains malicious code.

And circular references are common in scala, `Reference tracking` should be enabled by `FuryBuilder#withRefTracking(true)`. If you don't enable reference tracking, [StackOverflowError](https://github.com/alipay/fury/issues/1032) may happen for some scala versions when serializing scala Enumeration.
And circular references are common in scala, `Reference tracking` should be enabled by `FuryBuilder#withRefTracking(true)`. If you don't enable reference tracking, [StackOverflowError](https://github.com/apache/incubator-fury/issues/1032) may happen for some scala versions when serializing scala Enumeration.

Note that fury instance should be shared between multiple serialization, the creation of fury instance is not cheap.

Expand Down Expand Up @@ -114,6 +114,6 @@ Scala collections and generics doesn't follow java collection framework, and is

The execution for scala collections will invoke Java serialization API `writeObject/readObject/writeReplace/readResolve/readObjectNoData/Externalizable` with fury `ObjectStream` implementation. Although `io.fury.serializer.ObjectStreamSerializer` is much faster than JDK `ObjectOutputStream/ObjectInputStream`, but it still doesn't know how use scala collection generics.

In future we plan to provide more optimization for scala types, see https://github.com/alipay/fury/issues/682, stay tuned!
In future we plan to provide more optimization for scala types, see https://github.com/apache/incubator-fury/issues/682, stay tuned!

Scala collections serialization is finished in https://github.com/alipay/fury/pull/1073, if you want better performance, please use fury snapshot version.
Scala collections serialization is finished in https://github.com/apache/incubator-fury/pull/1073, if you want better performance, please use fury snapshot version.
8 changes: 4 additions & 4 deletions docs/guide/xlang_object_graph_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ print(new_map)
```go
package main

import furygo "github.com/alipay/fury/fury/go/fury"
import furygo "github.com/apache/incubator-fury/fury/go/fury"
import "fmt"

func main() {
Expand Down Expand Up @@ -251,7 +251,7 @@ if __name__ == "__main__":
```go
package main

import furygo "github.com/alipay/fury/fury/go/fury"
import furygo "github.com/apache/incubator-fury/fury/go/fury"
import "fmt"

func main() {
Expand Down Expand Up @@ -457,7 +457,7 @@ print(fury.deserialize(data))
```go
package main

import furygo "github.com/alipay/fury/fury/go/fury"
import furygo "github.com/apache/incubator-fury/fury/go/fury"
import "fmt"

func main() {
Expand Down Expand Up @@ -566,7 +566,7 @@ print(fury.deserialize(data, buffers=buffers))
```go
package main

import furygo "github.com/alipay/fury/fury/go/fury"
import furygo "github.com/apache/incubator-fury/fury/go/fury"
import "fmt"

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go/fury/fury_xlang_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package fury_test

import (
"fmt"
"github.com/alipay/fury/go/fury"
"github.com/apache/incubator-fury/go/fury"
"github.com/stretchr/testify/require"
"io/ioutil"
"os"
Expand Down
2 changes: 1 addition & 1 deletion go/fury/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

module github.com/alipay/fury/go/fury
module github.com/apache/incubator-fury/go/fury

go 1.13

Expand Down
6 changes: 3 additions & 3 deletions java/fury-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
<packaging>jar</packaging>

<scm>
<url>https://github.com/alipay/fury</url>
<connection>[email protected]:alipay/fury.git</connection>
<developerConnection>scm:git:ssh://github.com:alipay/fury.git</developerConnection>
<url>https://github.com/apache/incubator-fury</url>
<connection>[email protected]:apache/incubator-fury.git</connection>
<developerConnection>scm:git:ssh://github.com:apache/incubator-fury.git</developerConnection>
</scm>
<developers>
<developer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,6 @@ class A {
// `enum ColorEnum { case Red, Green, Blue }`
// `case class Colors(set: Set[ColorEnum])`
// ColorEnum.Green.getClass is a static local class.
// see https://github.com/alipay/fury/issues/1033
// see https://github.com/apache/incubator-fury/issues/1033
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public static class StringKeyMap<T> extends HashMap<String, T> {}

@Test
public void testStringKeyMapSerializer() {
// see https://github.com/alipay/fury/issues/1170
// see https://github.com/apache/incubator-fury/issues/1170
Fury fury = Fury.builder().withRefTracking(true).build();
fury.registerSerializer(StringKeyMap.class, MapSerializers.StringKeyMapSerializer.class);
StringKeyMap<List<String>> list = new StringKeyMap<>();
Expand Down
6 changes: 3 additions & 3 deletions java/fury-format/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
<packaging>jar</packaging>

<scm>
<url>https://github.com/alipay/fury</url>
<connection>[email protected]:alipay/fury.git</connection>
<developerConnection>scm:git:ssh://github.com:alipay/fury.git</developerConnection>
<url>https://github.com/apache/incubator-fury</url>
<connection>[email protected]:apache/incubator-fury.git</connection>
<developerConnection>scm:git:ssh://github.com:apache/incubator-fury.git</developerConnection>
</scm>
<developers>
<developer>
Expand Down
8 changes: 4 additions & 4 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@
<version>0.5.0-SNAPSHOT</version>
<name>Fury Project Parent POM</name>
<description>A blazing fast multi-language serialization framework powered by jit and zero-copy.</description>
<url>https://github.com/alipay/fury</url>
<url>https://github.com/apache/incubator-fury</url>
<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<scm>
<url>https://github.com/alipay/fury</url>
<connection>[email protected]:alipay/fury.git</connection>
<developerConnection>scm:git:ssh://github.com:alipay/fury.git</developerConnection>
<url>https://github.com/apache/incubator-fury</url>
<connection>[email protected]:apache/incubator-fury.git</connection>
<developerConnection>scm:git:ssh://github.com:apache/incubator-fury.git</developerConnection>
</scm>
<developers>
<developer>
Expand Down
2 changes: 1 addition & 1 deletion javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"lint": "eslint .",
"lint-fix": "eslint . --fix"
},
"repository": "[email protected]:alipay/fury.git",
"repository": "[email protected]:apache/incubator-fury.git",
"workspaces": [
"packages/hps",
"packages/fury"
Expand Down
2 changes: 1 addition & 1 deletion javascript/packages/fury/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"node-gyp": "^9.4.0",
"tslib": "^2.4.0"
},
"repository": "[email protected]:alipay/fury.git",
"repository": "[email protected]:apache/incubator-fury.git",
"workspaces": [
"packages/hps"
]
Expand Down
2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ version = "0.0.1"
rust-version = "1.70"
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/alipay/fury"
repository = "https://github.com/apache/incubator-fury"
edition = "2021"
keywords = ["fury", "data", "serialization"]
categories = ["encoding"]
2 changes: 1 addition & 1 deletion rust/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [Fury](https://github.com/alipay/fury) for Rust
# [Fury](https://github.com/apache/incubator-fury) for Rust

Fury is a blazing fast multi-language serialization framework powered by just-in-time compilation and zero-copy.

Expand Down
6 changes: 3 additions & 3 deletions scala/src/test/scala/io/fury/serializer/ScalaTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ScalaTest extends AnyWordSpec with Matchers {
}
}
"serialize/deserialize package object in app" in {
// If we move code in main here, we can't reproduce https://github.com/alipay/fury/issues/1165.
// If we move code in main here, we can't reproduce https://github.com/apache/incubator-fury/issues/1165.
PkgObjectMain.main(Array())
PkgObjectMain2.main(Array())
}
Expand All @@ -54,7 +54,7 @@ package object PkgObject {
case class IdAnyVal(value: Int) extends AnyVal
}

// Test for https://github.com/alipay/fury/issues/1165
// Test for https://github.com/apache/incubator-fury/issues/1165
object PkgObjectMain extends App {

val fury = Fury
Expand All @@ -74,7 +74,7 @@ object PkgObjectMain extends App {
}
}

// Test for https://github.com/alipay/fury/issues/1175
// Test for https://github.com/apache/incubator-fury/issues/1175
object PkgObjectMain2 extends App {
val fury = Fury
.builder()
Expand Down

0 comments on commit 74383c5

Please sign in to comment.