Skip to content

Commit

Permalink
chore: rename to raystack (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisuhag authored Jul 26, 2023
1 parent dac373f commit 7c7d77f
Show file tree
Hide file tree
Showing 218 changed files with 5,199 additions and 4,802 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,37 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
# See https://goreleaser.com/ci/actions/#fetch-depthness
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.18'
cache: true
check-latest: true
- name: Get release tag
id: get_version
uses: battila7/get-version-action@v2
- name: Run GoReleaser
uses: goreleaser/[email protected]
with:
distribution: goreleaser
version: latest
args: --snapshot --rm-dist
- name: Login to GitHub Packages Docker Registry
uses: docker/login-action@v1
with:
registry: docker.pkg.github.com
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push Images
run: docker push docker.io/odpf/meteor:latest
# See https://goreleaser.com/ci/actions/#fetch-depthness
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.18"
cache: true
check-latest: true
- name: Get release tag
id: get_version
uses: battila7/get-version-action@v2
- name: Run GoReleaser
uses: goreleaser/[email protected]
with:
distribution: goreleaser
version: latest
args: --snapshot --rm-dist
- name: Login to GitHub Packages Docker Registry
uses: docker/login-action@v1
with:
registry: docker.pkg.github.com
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push Images
run: docker push docker.io/raystack/meteor:latest
30 changes: 15 additions & 15 deletions .github/workflows/build_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
file: "./Dockerfile.dev"
tags: |
odpf/meteor:dev
- name: Checkout code
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
file: "./Dockerfile.dev"
tags: |
raystack/meteor:dev
17 changes: 8 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,19 @@ on:
pull_request:

jobs:
golangci:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.18'
# See https://github.com/golangci/golangci-lint-action#how-to-use
- name: golangci-lint
- name: Run linter
uses: golangci/golangci-lint-action@v3
with:
version: v1.50
version: v1.53
args: --timeout=5m
42 changes: 20 additions & 22 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project_name: meteor

release:
release:
prerelease: auto
draft: true

Expand All @@ -15,9 +15,9 @@ builds:
binary: meteor
flags: [-a]
ldflags:
- -X github.com/odpf/meteor/cmd.Version={{.Tag}}
- -X github.com/odpf/meteor/cmd.BuildCommit={{.FullCommit}}
- -X github.com/odpf/meteor/cmd.BuildDate={{.Date}}
- -X github.com/raystack/meteor/cmd.Version={{.Tag}}
- -X github.com/raystack/meteor/cmd.BuildCommit={{.FullCommit}}
- -X github.com/raystack/meteor/cmd.BuildDate={{.Date}}
goos: [linux]
goarch: [amd64, arm64] # skip goarch 386 and arm due to conflicts with "github.com/blastrain/vitess-sqlparser" library
env:
Expand All @@ -27,9 +27,9 @@ builds:
binary: meteor
flags: [-a]
ldflags:
- -X github.com/odpf/meteor/cmd.Version={{.Tag}}
- -X github.com/odpf/meteor/cmd.BuildCommit={{.FullCommit}}
- -X github.com/odpf/meteor/cmd.BuildDate={{.Date}}
- -X github.com/raystack/meteor/cmd.Version={{.Tag}}
- -X github.com/raystack/meteor/cmd.BuildCommit={{.FullCommit}}
- -X github.com/raystack/meteor/cmd.BuildDate={{.Date}}
goos: [darwin]
goarch: [amd64, 386, arm, arm64]
env:
Expand All @@ -39,9 +39,9 @@ builds:
binary: meteor
flags: [-a]
ldflags:
- -X github.com/odpf/meteor/cmd.Version={{.Tag}}
- -X github.com/odpf/meteor/cmd.BuildCommit={{.FullCommit}}
- -X github.com/odpf/meteor/cmd.BuildDate={{.Date}}
- -X github.com/raystack/meteor/cmd.Version={{.Tag}}
- -X github.com/raystack/meteor/cmd.BuildCommit={{.FullCommit}}
- -X github.com/raystack/meteor/cmd.BuildDate={{.Date}}
goos: [windows]
goarch: [amd64, arm64] # skip goarch 386 and arm due to conflicts with "github.com/blastrain/vitess-sqlparser" library
env:
Expand All @@ -59,7 +59,7 @@ archives:
format: zip

checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"

snapshot:
name_template: "{{ .Tag }}-next"
Expand All @@ -68,28 +68,27 @@ changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^build:'
- "^docs:"
- "^test:"
- "^build:"

dockers:
-
goos: linux
- goos: linux
goarch: amd64
ids:
- linux
dockerfile: Dockerfile
image_templates:
- 'docker.io/odpf/{{.ProjectName}}:latest'
- 'docker.io/odpf/{{.ProjectName}}:{{ .Version }}'
- 'docker.io/odpf/{{.ProjectName}}:{{ .Version }}-amd64'
- "docker.io/raystack/{{.ProjectName}}:latest"
- "docker.io/raystack/{{.ProjectName}}:{{ .Version }}"
- "docker.io/raystack/{{.ProjectName}}:{{ .Version }}-amd64"

brews:
- name: meteor
homepage: "https://github.com/odpf/meteor"
homepage: "https://github.com/raystack/meteor"
description: "Metadata collection tool."
tap:
owner: odpf
owner: raystack
name: homebrew-tap
license: "Apache 2.0"
folder: Formula
Expand All @@ -101,4 +100,3 @@ brews:
commit_author:
name: Ravi Suhag
email: [email protected]

8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NAME="github.com/odpf/meteor"
NAME="github.com/raystack/meteor"
VERSION=$(shell git describe --always --tags 2>/dev/null)
COVERFILE="/tmp/app.coverprofile"
PROTON_COMMIT := "8990712599f715240a3fbe9ce034a204b4a32245"
PROTON_COMMIT := "42b77358cbb68335607e99794f729e4a558974a5"
.PHONY: all build clean test

all: build
Expand Down Expand Up @@ -34,9 +34,9 @@ test-coverage: # test test-plugins
go tool cover -html=coverage-all.out

generate-proto: ## regenerate protos
@echo " > cloning protobuf from odpf/proton"
@echo " > cloning protobuf from raystack/proton"
@echo " > generating protobuf"
@buf generate --template buf.gen.yaml https://github.com/odpf/proton/archive/${PROTON_COMMIT}.zip#strip_components=1 --path odpf/assets/v1beta2
@buf generate --template buf.gen.yaml https://github.com/raystack/proton/archive/${PROTON_COMMIT}.zip#strip_components=1 --path raystack/assets/v1beta2
@echo " > protobuf compilation finished"

lint: ## Lint with golangci-lint
Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Meteor

![test workflow](https://github.com/odpf/meteor/actions/workflows/test.yml/badge.svg)
![build workflow](https://github.com/odpf/meteor/actions/workflows/build.yml/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/odpf/meteor)](https://goreportcard.com/report/github.com/odpf/meteor)
[![Coverage Status](https://coveralls.io/repos/github/odpf/meteor/badge.svg?branch=main)](https://coveralls.io/github/odpf/meteor?branch=main)
[![Version](https://img.shields.io/github/v/release/odpf/meteor?logo=semantic-release)](Version)
![test workflow](https://github.com/raystack/meteor/actions/workflows/test.yml/badge.svg)
![build workflow](https://github.com/raystack/meteor/actions/workflows/build.yml/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/raystack/meteor)](https://goreportcard.com/report/github.com/raystack/meteor)
[![Coverage Status](https://coveralls.io/repos/github/raystack/meteor/badge.svg?branch=main)](https://coveralls.io/github/raystack/meteor?branch=main)
[![Version](https://img.shields.io/github/v/release/raystack/meteor?logo=semantic-release)](Version)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?logo=apache)](LICENSE)

Meteor is a plugin driven agent for collecting metadata. Meteor has plugins to source metadata from a variety of data stores, services and message queues.
Expand All @@ -24,25 +24,25 @@ It also has sink plugins to send metadata to variety of third party APIs and cat

Explore the following resources to get started with Meteor:

- [Usage Guides](https://odpf.github.io/meteor/docs/guides/introduction) will help you get started on Meteor.
- [Concepts](https://odpf.github.io/meteor/docs/concepts/overview) describes all important Meteor concepts.
- [Contribute](https://odpf.github.io/meteor/docs/contribute/guide) contains resources for anyone who wants to contribute to Meteor.
- [Usage Guides](https://raystack.github.io/meteor/docs/guides/introduction) will help you get started on Meteor.
- [Concepts](https://raystack.github.io/meteor/docs/concepts/overview) describes all important Meteor concepts.
- [Contribute](https://raystack.github.io/meteor/docs/contribute/guide) contains resources for anyone who wants to contribute to Meteor.

## Installation

Install Meteor on macOS, Windows, Linux, OpenBSD, FreeBSD, and on any machine.

#### Binary (Cross-platform)

Download the appropriate version for your platform from [releases](https://github.com/odpf/meteor/releases) page. Once downloaded, the binary can be run from anywhere.
Download the appropriate version for your platform from [releases](https://github.com/raystack/meteor/releases) page. Once downloaded, the binary can be run from anywhere.
You don’t need to install it into a global location. This works well for shared hosts and other systems where you don’t have a privileged account.
Ideally, you should install it somewhere in your PATH for easy use. `/usr/local/bin` is the most probable location.

#### Homebrew

```sh
# Install meteor (requires homebrew installed)
$ brew install odpf/tap/meteor
$ brew install raystack/tap/meteor

# Upgrade meteor (requires homebrew installed)
$ brew upgrade meteor
Expand All @@ -67,7 +67,7 @@ $ meteor reference

```sh
# Clone the repo
$ git clone https://github.com/odpf/meteor.git
$ git clone https://github.com/raystack/meteor.git

# Install all the golang dependencies
$ go mod tidy
Expand Down Expand Up @@ -97,11 +97,11 @@ $ go test -tags=integration

Development of Meteor happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving Meteor.

Read our [contributing guide](https://odpf.github.io/meteor/docs/contribute/contributing) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Meteor.
Read our [contributing guide](https://raystack.github.io/meteor/docs/contribute/contributing) to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Meteor.

To help you get your feet wet and get you familiar with our contribution process, we have a list of [good first issues](https://github.com/odpf/meteor/labels/good%20first%20issue) that contain bugs which have a relatively limited scope. This is a great place to get started.
To help you get your feet wet and get you familiar with our contribution process, we have a list of [good first issues](https://github.com/raystack/meteor/labels/good%20first%20issue) that contain bugs which have a relatively limited scope. This is a great place to get started.

This project exists thanks to all the [contributors](https://github.com/odpf/meteor/graphs/contributors).
This project exists thanks to all the [contributors](https://github.com/raystack/meteor/graphs/contributors).

## License

Expand Down
10 changes: 5 additions & 5 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
"sync/atomic"
"time"

"github.com/odpf/meteor/models"
"github.com/odpf/meteor/plugins"
"github.com/odpf/meteor/recipe"
"github.com/odpf/meteor/registry"
"github.com/odpf/salt/log"
"github.com/pkg/errors"
"github.com/raystack/meteor/models"
"github.com/raystack/meteor/plugins"
"github.com/raystack/meteor/recipe"
"github.com/raystack/meteor/registry"
"github.com/raystack/salt/log"
)

const defaultBatchSize = 1
Expand Down
22 changes: 11 additions & 11 deletions agent/agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ import (
"time"

"github.com/MakeNowJust/heredoc"
"github.com/odpf/meteor/agent"
"github.com/odpf/meteor/models"
"github.com/odpf/meteor/plugins"
"github.com/odpf/meteor/recipe"
"github.com/odpf/meteor/registry"
"github.com/odpf/meteor/test/mocks"
"github.com/odpf/meteor/test/utils"
"github.com/raystack/meteor/agent"
"github.com/raystack/meteor/models"
"github.com/raystack/meteor/plugins"
"github.com/raystack/meteor/recipe"
"github.com/raystack/meteor/registry"
"github.com/raystack/meteor/test/mocks"
"github.com/raystack/meteor/test/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"google.golang.org/protobuf/types/known/timestamppb"

v1beta2 "github.com/odpf/meteor/models/odpf/assets/v1beta2"
_ "github.com/odpf/meteor/plugins/extractors" // populate extractors registry
_ "github.com/odpf/meteor/plugins/processors" // populate processors registry
_ "github.com/odpf/meteor/plugins/sinks" // populate sinks registry
v1beta2 "github.com/raystack/meteor/models/raystack/assets/v1beta2"
_ "github.com/raystack/meteor/plugins/extractors" // populate extractors registry
_ "github.com/raystack/meteor/plugins/processors" // populate processors registry
_ "github.com/raystack/meteor/plugins/sinks" // populate sinks registry
)

var (
Expand Down
2 changes: 1 addition & 1 deletion agent/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package agent
import (
"errors"

"github.com/odpf/meteor/models"
"github.com/raystack/meteor/models"
)

// batch contains the configuration for a batch
Expand Down
4 changes: 2 additions & 2 deletions agent/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package agent
import (
"time"

"github.com/odpf/meteor/registry"
"github.com/odpf/salt/log"
"github.com/raystack/meteor/registry"
"github.com/raystack/salt/log"
)

type Config struct {
Expand Down
Loading

0 comments on commit 7c7d77f

Please sign in to comment.