Skip to content

Commit 256b989

Browse files
authored
feat: optimus upgrades (#770)
1 parent f146fcf commit 256b989

File tree

525 files changed

+27064
-18679
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

525 files changed

+27064
-18679
lines changed

.github/workflows/publish-latest.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
username: ${{ secrets.DOCKERHUB_USERNAME }}
2929
password: ${{ secrets.DOCKERHUB_TOKEN }}
3030
- name: Run GoReleaser
31-
uses: goreleaser/goreleaser-action@v2.6.1
31+
uses: goreleaser/goreleaser-action@v4
3232
with:
3333
distribution: goreleaser
34-
version: v1.8.3
34+
version: v1.19
3535
args: -f .goreleaser.latest.yml --rm-dist --skip-validate
3636
env:
3737
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_TOKEN }}
@@ -59,4 +59,4 @@ jobs:
5959
run: |
6060
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
6161
git config --global user.name "github-actions[bot]"
62-
yarn deploy
62+
yarn deploy

.github/workflows/verify.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
go-version: '1.19'
3434
- name: test binaries
3535
run: make test-ci
36-
- name: Install goveralls
37-
run: go install github.com/mattn/goveralls@latest
38-
- name: Send coverage
39-
env:
40-
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
run: goveralls -coverprofile=coverage.txt -service=github
36+
# - name: Install goveralls
37+
# run: go install github.com/mattn/goveralls@latest
38+
# - name: Send coverage
39+
# env:
40+
# COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
# run: goveralls -coverprofile=coverage.txt -service=github
4242
integration-test:
4343
runs-on: ubuntu-latest
4444
services:

.golangci.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -60,30 +60,30 @@ linters-settings:
6060
rules:
6161
- name: atomic
6262
- name: context-as-argument
63-
# - name: context-keys-type #perf issue
63+
# - name: context-keys-type #perf issue
6464
- name: defer
6565
- name: dot-imports
6666
- name: empty-block
6767
- name: error-naming
6868
- name: error-return
69-
# - name: error-strings
69+
# - name: error-strings
7070
- name: early-return
71-
# - name: errorf #perf issue
72-
# - name: exported
71+
# - name: errorf #perf issue
72+
# - name: exported
7373
- name: if-return
7474
- name: increment-decrement
7575
- name: indent-error-flow
76-
# - name: flag-parameter
76+
# - name: flag-parameter
7777
- name: modifies-parameter
78-
# - name: modifies-value-receiver #perf issue
78+
# - name: modifies-value-receiver #perf issue
7979
- name: package-comments
8080
- name: range
8181
- name: receiver-naming
8282
- name: redefines-builtin-id
8383
- name: superfluous-else
84-
# - name: time-naming #perf issue
84+
# - name: time-naming #perf issue
8585
- name: unexported-naming
86-
# - name: var-declaration #perf issue
86+
# - name: var-declaration #perf issue
8787
- name: var-naming
8888
- name: unused-receiver
8989
- name: unused-parameter
@@ -95,18 +95,18 @@ linters-settings:
9595
numbers: true
9696
gomnd:
9797
ignored-numbers: # Why we have a big range of file permissions
98-
- '0o600'
99-
- '0o644'
100-
- '0o655'
101-
- '0o666'
102-
- '0o770'
103-
- '0o755'
104-
- '0o765'
105-
- '0o777'
98+
- "0o600"
99+
- "0o644"
100+
- "0o655"
101+
- "0o666"
102+
- "0o770"
103+
- "0o755"
104+
- "0o765"
105+
- "0o777"
106106
ignored-functions:
107-
- 'survey.MinLength'
108-
- 'survey.MaxLength'
109-
- 'args.Error'
107+
- "survey.MinLength"
108+
- "survey.MaxLength"
109+
- "args.Error"
110110
gosec:
111111
excludes:
112112
- G101
@@ -121,20 +121,20 @@ linters-settings:
121121
- "all"
122122
- "-SA1019"
123123
goimports:
124-
local-prefixes: github.com/odpf/optimus
124+
local-prefixes: github.com/raystack/optimus
125125
gci:
126126
sections:
127127
- standard # Captures all standard packages if they do not match another section.
128128
- default # Contains all imports that could not be matched to another section type.
129-
- prefix(github.com/odpf/optimus) # Groups all imports with the specified Prefix.
129+
- prefix(github.com/raystack/optimus) # Groups all imports with the specified Prefix.
130130
gocritic:
131131
disabled-checks:
132132
- ifElseChain
133133
- singleCaseSwitch
134134
enabled-tags:
135135
- diagnostic
136-
# - style
137-
# - opinionated
136+
# - style
137+
# - opinionated
138138
- performance
139139
unparam:
140140
# Inspect exported functions.
@@ -154,4 +154,4 @@ issues:
154154
- unparam
155155
- testpackage
156156
severity:
157-
default-severity: error
157+
default-severity: error

.goreleaser.latest.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ builds:
1010
flags:
1111
- -a
1212
ldflags:
13-
- -s -w -X github.com/odpf/optimus/config.BuildVersion=latest -X github.com/odpf/optimus/config.BuildCommit={{.FullCommit}} -X github.com/odpf/optimus/config.BuildDate={{.Date}}
13+
- -s -w -X github.com/raystack/optimus/config.BuildVersion=latest -X github.com/raystack/optimus/config.BuildCommit={{.FullCommit}} -X github.com/raystack/optimus/config.BuildDate={{.Date}}
1414
goos:
1515
- linux
1616
- darwin
@@ -21,39 +21,38 @@ builds:
2121
env:
2222
- CGO_ENABLED=0
2323
archives:
24-
- name_template: "{{ .ProjectName }}_latest_{{ .Os }}_{{ .Arch }}"
25-
replacements:
26-
darwin: macos
27-
linux: linux
28-
windows: windows
29-
amd64: x86_64
24+
- name_template: >-
25+
{{ .ProjectName }}_latest_
26+
{{- if eq .Os "darwin" }}macos
27+
{{- else }}{{ .Os }}{{ end }}_
28+
{{- if eq .Arch "amd64" }}x86_64
29+
{{- else }}{{ .Arch }}{{ end }}
3030
format_overrides:
3131
- goos: windows
3232
format: zip
3333
release:
3434
disable: true
3535
name_template: "{{.ProjectName}}-latest"
3636
checksum:
37-
name_template: 'checksums.txt'
37+
name_template: "checksums.txt"
3838
snapshot:
3939
name_template: "latest"
4040
changelog:
4141
sort: asc
4242
filters:
4343
exclude:
44-
- '^docs'
45-
- '^test'
46-
- '^build'
47-
- '^chore'
44+
- "^docs"
45+
- "^test"
46+
- "^build"
47+
- "^chore"
4848
dockers:
49-
-
50-
goos: linux
49+
- goos: linux
5150
goarch: amd64
5251
ids:
5352
- optimus
5453
dockerfile: Dockerfile
5554
image_templates:
56-
- 'docker.io/odpf/{{.ProjectName}}:latest'
57-
- 'docker.io/odpf/{{.ProjectName}}:latest-amd64'
55+
- "docker.io/raystack/{{.ProjectName}}:latest"
56+
- "docker.io/raystack/{{.ProjectName}}:latest-amd64"
5857
extra_files:
59-
- entrypoint_init_container.sh
58+
- entrypoint_init_container.sh

.goreleaser.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ builds:
1010
flags:
1111
- -a
1212
ldflags:
13-
- -s -w -X github.com/odpf/optimus/config.BuildVersion={{ .Version }} -X github.com/odpf/optimus/config.BuildCommit={{.FullCommit}} -X github.com/odpf/optimus/config.BuildDate={{.Date}}
13+
- -s -w -X github.com/raystack/optimus/config.BuildVersion={{ .Version }} -X github.com/raystack/optimus/config.BuildCommit={{.FullCommit}} -X github.com/raystack/optimus/config.BuildDate={{.Date}}
1414
goos:
1515
- linux
1616
- darwin
@@ -33,43 +33,42 @@ release:
3333
draft: true
3434
prerelease: auto
3535
checksum:
36-
name_template: 'checksums.txt'
36+
name_template: "checksums.txt"
3737
snapshot:
3838
name_template: "{{ .Tag }}-next"
3939
changelog:
4040
sort: asc
4141
filters:
4242
exclude:
43-
- '^docs'
44-
- '^test'
45-
- '^build'
46-
- '^chore'
43+
- "^docs"
44+
- "^test"
45+
- "^build"
46+
- "^chore"
4747
dockers:
48-
-
49-
goos: linux
48+
- goos: linux
5049
goarch: amd64
5150
ids:
5251
- optimus
5352
dockerfile: Dockerfile
5453
image_templates:
55-
- 'docker.io/odpf/{{.ProjectName}}:{{ .Version }}'
56-
- 'docker.io/odpf/{{.ProjectName}}:{{ .Version }}-amd64'
54+
- "docker.io/raystack/{{.ProjectName}}:{{ .Version }}"
55+
- "docker.io/raystack/{{.ProjectName}}:{{ .Version }}-amd64"
5756
extra_files:
5857
- entrypoint_init_container.sh
5958
brews:
6059
- name: optimus
6160
tap:
62-
owner: odpf
61+
owner: raystack
6362
name: homebrew-tap
6463
license: "Apache 2.0"
6564
description: "Optimus helps your organization to build & manage data pipelines with ease."
66-
homepage: https://odpf.github.io/optimus
65+
homepage: https://raystack.github.io/optimus
6766
folder: Formula
6867
skip_upload: auto
6968
dependencies:
7069
- name: git
7170
install: |-
7271
bin.install "optimus"
7372
commit_author:
74-
name: github-actions[bot]
75-
email: 41898282+github-actions[bot]@users.noreply.github.com
73+
name: Ravi Suhag
74+
email: suhag.ravi@gmail.com

Makefile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
.ONESHELL:
22
.DELETE_ON_ERROR:
33
MAKEFLAGS += --no-builtin-rules
4-
NAME = "github.com/odpf/optimus"
4+
NAME = "github.com/raystack/optimus"
55
LAST_COMMIT := $(shell git rev-parse --short HEAD)
66
LAST_TAG := "$(shell git rev-list --tags --max-count=1)"
77
OPMS_VERSION := "$(shell git describe --tags ${LAST_TAG})-next"
8-
PROTON_COMMIT := "31ac9046d1a8c95a2f4645b87bf0620a3e6bb8bc"
8+
PROTON_COMMIT := "1c39e65e529d573a1cd422e44f019c62d65fd10b"
99

1010

1111
.PHONY: build test test-ci generate-proto unit-test-ci integration-test vet coverage clean install lint
@@ -30,9 +30,9 @@ scheduler-resource-test:
3030
cd ./ext/scheduler/airflow2/tests && pip3 install -r requirements.txt && python3 -m unittest discover .
3131

3232
generate-proto: ## regenerate protos
33-
@echo " > generating protobuf from odpf/proton"
33+
@echo " > generating protobuf from raystack/proton"
3434
@echo " > [info] make sure correct version of dependencies are installed using 'make install'"
35-
@buf generate https://github.com/odpf/proton/archive/${PROTON_COMMIT}.zip#strip_components=1 --template buf.gen.yaml --path odpf/optimus
35+
@buf generate https://github.com/raystack/proton/archive/${PROTON_COMMIT}.zip#strip_components=1 --template buf.gen.yaml --path raystack/optimus
3636
@echo " > protobuf compilation finished"
3737

3838
unit-test-ci:
@@ -53,9 +53,6 @@ bench:
5353
coverage: ## print code coverage
5454
go test -race -coverprofile coverage.txt -covermode=atomic ./... -tags=unit_test && go tool cover -html=coverage.txt
5555

56-
clean:
57-
rm -rf ./optimus ./dist ./api/proto/* ./api/third_party/odpf/*
58-
5956
lint:
6057
golangci-lint run --fix
6158

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Optimus
22

3-
[![verify workflow](https://github.com/odpf/optimus/actions/workflows/verify.yml/badge.svg)](verification)
4-
[![publish latest workflow](https://github.com/odpf/optimus/actions/workflows/publish-latest.yml/badge.svg)](build)
5-
[![Coverage Status](https://coveralls.io/repos/github/odpf/optimus/badge.svg?branch=main)](https://coveralls.io/github/odpf/optimus?branch=main)
3+
[![verify workflow](https://github.com/raystack/optimus/actions/workflows/verify.yml/badge.svg)](verification)
4+
[![publish latest workflow](https://github.com/raystack/optimus/actions/workflows/publish-latest.yml/badge.svg)](build)
5+
[![Coverage Status](https://coveralls.io/repos/github/raystack/optimus/badge.svg?branch=main)](https://coveralls.io/github/raystack/optimus?branch=main)
66
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?logo=apache)](LICENSE)
7-
[![Version](https://img.shields.io/github/v/release/odpf/optimus?logo=semantic-release)](Version)
7+
[![Version](https://img.shields.io/github/v/release/raystack/optimus?logo=semantic-release)](Version)
88

99
Optimus is an easy-to-use, reliable, and performant workflow orchestrator for data transformation, data modeling, pipelines, and data quality management. It enables data analysts and engineers to transform their data by writing simple SQL queries and YAML configuration while Optimus handles dependency management, scheduling and all other aspects of running transformation jobs at scale.
1010

@@ -29,7 +29,7 @@ Discover why users choose Optimus as their main data transformation tool.
2929
Optimus has two components, Optimus service that is the core orchestrator installed on server side, and a CLI binary used to interact with this service. You can install Optimus CLI using homebrew on macOS:
3030

3131
```shell
32-
$ brew install odpf/tap/optimus
32+
$ brew install raystack/tap/optimus
3333
$ optimus --help
3434

3535
Optimus is an easy-to-use, reliable, and performant workflow orchestrator for
@@ -67,10 +67,10 @@ Use "optimus [command] --help" for more information about a command.
6767

6868
Explore the following resources to get started with Optimus:
6969

70-
- [Guides](https://odpf.github.io/optimus/docs/guides/create-job/) provides guidance on using Optimus.
71-
- [Concepts](https://odpf.github.io/optimus/docs/concepts/overview/) describes all important Optimus concepts.
72-
- [Reference](https://odpf.github.io/optimus/docs/reference/api/) contains details about configurations, metrics and other aspects of Optimus.
73-
- [Contribute](https://odpf.github.io/optimus/docs/contribute/contributing/) contains resources for anyone who wants to contribute to Optimus.
70+
- [Guides](https://raystack.github.io/optimus/docs/guides/create-job/) provides guidance on using Optimus.
71+
- [Concepts](https://raystack.github.io/optimus/docs/concepts/overview/) describes all important Optimus concepts.
72+
- [Reference](https://raystack.github.io/optimus/docs/reference/api/) contains details about configurations, metrics and other aspects of Optimus.
73+
- [Contribute](https://raystack.github.io/optimus/docs/contribute/contributing/) contains resources for anyone who wants to contribute to Optimus.
7474

7575
## Running locally
7676

@@ -82,7 +82,7 @@ Optimus requires the following dependencies:
8282
Run the following commands to compile `optimus` from source
8383

8484
```shell
85-
$ git clone [email protected]:odpf/optimus.git
85+
$ git clone [email protected]:raystack/optimus.git
8686
$ cd optimus
8787
$ make
8888
```
@@ -99,7 +99,7 @@ Optimus service can be started with
9999
$ ./optimus serve
100100
```
101101

102-
`serve` command has few required configurations that needs to be set for it to start. Read more about it in [getting started](https://odpf.github.io/optimus/docs/getting-started/configuration).
102+
`serve` command has few required configurations that needs to be set for it to start. Read more about it in [getting started](https://raystack.github.io/optimus/docs/getting-started/configuration).
103103

104104
## Compatibility
105105

@@ -109,9 +109,9 @@ Optimus is currently undergoing heavy development with frequent, breaking API ch
109109

110110
Development of Optimus 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 Optimus.
111111

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

114-
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/optimus/labels/good%20first%20issue) that contain bugs which have a relatively limited scope. This is a great place to get started.
114+
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/optimus/labels/good%20first%20issue) that contain bugs which have a relatively limited scope. This is a great place to get started.
115115

116116
## License
117117

buf.gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ plugins:
77
# proto file should be.
88
# This is necessary while importing a proto file foo/a.proto from another
99
# directory, e.g. bar/b.proto
10-
opt: paths=source_relative,Modpf/optimus/core/v1beta1/job_run.proto=github.com/odpf/optimus/protos/odpf/optimus/core/v1beta1,Modpf/optimus/core/v1beta1/project.proto=github.com/odpf/optimus/protos/odpf/optimus/core/v1beta1,Modpf/optimus/core/v1beta1/namespace.proto=github.com/odpf/optimus/protos/odpf/optimus/core/v1beta1,Modpf/optimus/core/v1beta1/job_spec.proto=github.com/odpf/optimus/protos/odpf/optimus/core/v1beta1,Modpf/optimus/core/v1beta1/scheduler.proto=github.com/odpf/optimus/protos/odpf/optimus/core/v1beta1,Modpf/optimus/core/v1beta1/status.proto=github.com/odpf/optimus/protos/odpf/optimus/core/v1beta1,Modpf/optimus/core/v1beta1/resource.proto=github.com/odpf/optimus/protos/odpf/optimus/core/v1beta1
10+
opt: paths=source_relative,Mraystack/optimus/core/v1beta1/job_run.proto=github.com/raystack/optimus/protos/raystack/optimus/core/v1beta1,Mraystack/optimus/core/v1beta1/project.proto=github.com/raystack/optimus/protos/raystack/optimus/core/v1beta1,Mraystack/optimus/core/v1beta1/namespace.proto=github.com/raystack/optimus/protos/raystack/optimus/core/v1beta1,Mraystack/optimus/core/v1beta1/job_spec.proto=github.com/raystack/optimus/protos/raystack/optimus/core/v1beta1,Mraystack/optimus/core/v1beta1/scheduler.proto=github.com/raystack/optimus/protos/raystack/optimus/core/v1beta1,Mraystack/optimus/core/v1beta1/status.proto=github.com/raystack/optimus/protos/raystack/optimus/core/v1beta1,Mraystack/optimus/core/v1beta1/resource.proto=github.com/raystack/optimus/protos/raystack/optimus/core/v1beta1
1111
- name: go-grpc
1212
out: protos
1313
opt: paths=source_relative,require_unimplemented_servers=true
1414
- name: grpc-gateway
1515
out: protos
1616
opt: paths=source_relative
1717
- name: openapiv2
18-
out: protos
18+
out: protos

0 commit comments

Comments
 (0)