Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix something #2

Closed
wants to merge 464 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
464 commits
Select commit Hold shift + click to select a range
5d254a7
fix: e2e-tests
shifty11 Feb 5, 2024
86b48fa
chore: run formatter & linter
shifty11 Feb 5, 2024
eee2f75
feat: split common cmd and docker logic into goutils module
shifty11 Feb 6, 2024
fed812c
feat: add root Makefile
shifty11 Feb 6, 2024
7513b53
chore: format & lint
shifty11 Feb 6, 2024
42c2c6c
chore: remove unused files
shifty11 Feb 6, 2024
130d5a2
chore: update go.mod files
shifty11 Feb 6, 2024
1729a80
feat: update readme's
shifty11 Feb 6, 2024
5559bf0
chore: rename start.sh to kystrap.sh
shifty11 Feb 6, 2024
6153138
chore: cleanup main README.md
shifty11 Feb 6, 2024
bcf2da3
feat: add more docs
shifty11 Feb 6, 2024
47d5028
feat: add history for kystrap testing
shifty11 Feb 7, 2024
2b877d3
chore: update templates
shifty11 Feb 7, 2024
b9b10f3
feat: add test script
shifty11 Feb 7, 2024
ea3be82
fix: test script
shifty11 Feb 7, 2024
3665f45
fix: typos
shifty11 Feb 7, 2024
6b2c285
chore: update build and makefile's
shifty11 Feb 8, 2024
fe59e3b
chore: remove go.work in root
shifty11 Feb 8, 2024
9c4b088
feat: update kystrap test
shifty11 Feb 8, 2024
2a09396
chore: refactor test.sh
shifty11 Feb 8, 2024
a54b1ed
feat: run kysor in foreground by default
shifty11 Feb 12, 2024
6ff5462
fix: printing of logs
shifty11 Feb 12, 2024
a1c855d
feat: restart on new version
shifty11 Feb 12, 2024
0155b14
feat: pull repo continuously
shifty11 Feb 12, 2024
102d621
chore: refactor code
shifty11 Feb 12, 2024
796cac7
feat: add protocol- and integration version flags
shifty11 Feb 12, 2024
ad9707f
fix: stopping of containers
shifty11 Feb 12, 2024
68f8714
chore: refactor stopping of containers
shifty11 Feb 13, 2024
e45de46
feat: add valaccount flag to stop
shifty11 Feb 13, 2024
fff7eb1
chore: update deps
shifty11 Feb 13, 2024
34bac29
feat: add extra hosts do docker config
shifty11 Feb 13, 2024
045b0cd
feat: add extra hosts to start
shifty11 Feb 13, 2024
a8fa9e3
chore: update images
shifty11 Feb 13, 2024
2c22318
fix: disable auto-update
shifty11 Feb 13, 2024
706e175
fix: auto-update
shifty11 Feb 13, 2024
580f5ec
fix: config saving
shifty11 Feb 13, 2024
d7200c2
fix: missing port in config
shifty11 Feb 13, 2024
7e7ee79
feat: add docker check
shifty11 Feb 13, 2024
448b249
chore: add go.work
shifty11 Feb 13, 2024
98ed6af
feat: add max size to selection prompt
shifty11 Feb 13, 2024
7449043
chore: use a better ansi color library
shifty11 Feb 13, 2024
6608111
chore: update cli
shifty11 Feb 13, 2024
0f8f0cc
feat: add e2e tests for new integrations
shifty11 Feb 14, 2024
93a7462
chore: update docs for testing
shifty11 Feb 14, 2024
4e9ae68
chore: remove unused testdata
shifty11 Feb 14, 2024
d5a6655
chore: update docs
shifty11 Feb 14, 2024
3abc5bb
fix: copy file permissions in bootstrap command
shifty11 Feb 14, 2024
6f68127
feat: add fetch-testdata.sh script
shifty11 Feb 14, 2024
1ae8171
fix: lots of small fixes
shifty11 Feb 14, 2024
beaddef
chore: update goutils
shifty11 Feb 14, 2024
f88e59d
chore: update SummarizeDataBundle for go template
shifty11 Feb 14, 2024
8a1143f
chore: remove unused stuff
shifty11 Feb 15, 2024
27d21e3
feat: add confirmation prompt to transfer
shifty11 Feb 15, 2024
9c27fc3
chore: remove code complexity
shifty11 Feb 15, 2024
636df52
fix: error handling for new version check
shifty11 Feb 15, 2024
a4ad0fc
chore: add tools to goutils
shifty11 Feb 15, 2024
3a88f18
chore: update cosmos-sdk deps
shifty11 Feb 15, 2024
51afef1
chore: update go.work.sum
shifty11 Feb 15, 2024
b76450d
fix: printLogs loop
shifty11 Feb 15, 2024
c7087a0
fix: go template
shifty11 Feb 15, 2024
0856a39
fix: go template
shifty11 Feb 15, 2024
6870f82
chore: delete typescript stuff in kysor
shifty11 Feb 15, 2024
7e309c1
chore: update Makefiles to support parallel execution of docker build…
shifty11 Feb 15, 2024
ccfed0f
feat: add docker-image to e2etest and kystrap Makefiles
shifty11 Feb 15, 2024
215eee5
feat: add Makefile to typescript integrations
shifty11 Feb 15, 2024
f073663
feat: add Makefile to protocol and sdk
shifty11 Feb 15, 2024
0a1b932
feat: add lint to sdk
shifty11 Feb 15, 2024
0911412
chore: update kysor version handling
shifty11 Feb 19, 2024
d63aa0b
chore: update template
shifty11 Feb 20, 2024
8afef24
chore: remove protocol dependency from typescript integrations
shifty11 Feb 20, 2024
e9a20d8
chore: remove protocol dependency from typescript integrations
shifty11 Feb 20, 2024
392031d
feat: add release script
shifty11 Feb 21, 2024
dfe2fd0
chore: update error message
shifty11 Feb 21, 2024
772c1bf
fix: problems with local git repo handling
shifty11 Feb 22, 2024
23e2120
chore: add some TODO's
shifty11 Feb 22, 2024
def664e
fix: auto-update
shifty11 Feb 22, 2024
a13a9ce
chore: remove sdk and types
shifty11 Feb 22, 2024
c33d3fb
chore: move proto to common folder
shifty11 Feb 22, 2024
427aea9
chore: move protocol to protocol/core
shifty11 Feb 22, 2024
d852af2
chore: move integrations to runtime
shifty11 Feb 22, 2024
05599c1
chore: move e2etest to test/e2e
shifty11 Feb 22, 2024
6da33a9
chore: rename integrations to runtimes in e2etest
shifty11 Feb 22, 2024
43542ce
fix: e2e tests
shifty11 Feb 22, 2024
93737a5
chore: rename integration to runtime in kysor & kystrap
shifty11 Feb 22, 2024
28c8e36
fix: path in proto-gen.sh
shifty11 Feb 22, 2024
92586bc
feat: add new github workflow files
shifty11 Feb 22, 2024
f4203df
feat: add matrix run to docker build (CI/CD)
shifty11 Feb 22, 2024
403df58
fix: typo
shifty11 Feb 22, 2024
7b144c2
chore: trigger CI/CD
shifty11 Feb 26, 2024
d472a30
fix: CI/CD
shifty11 Feb 26, 2024
8a8e9ee
fix: CI/CD
shifty11 Feb 26, 2024
6c1ffd2
fix: CI/CD
shifty11 Feb 26, 2024
5d5b1f0
chore: do CI/CD stuff
shifty11 Feb 26, 2024
d777065
chore: do CI/CD stuff
shifty11 Feb 26, 2024
cd1aac4
chore: do CI/CD stuff
shifty11 Feb 26, 2024
09d523a
chore: do CI/CD stuff
shifty11 Feb 26, 2024
df8bcb3
chore: do CI/CD stuff
shifty11 Feb 26, 2024
4240642
chore: do CI/CD stuff
shifty11 Feb 26, 2024
3556951
chore: do CI/CD stuff
shifty11 Feb 26, 2024
5677541
chore: do CI/CD stuff
shifty11 Feb 26, 2024
25cd63c
Merge pull request #1 from shifty11/rapha/dockerization
shifty11 Feb 26, 2024
d7b5a20
chore: do CI/CD stuff
shifty11 Feb 26, 2024
206e2d8
chore: do CI/CD stuff
shifty11 Feb 26, 2024
914bc5b
delete stuff
shifty11 Feb 26, 2024
5eb97f1
chore: do CI/CD stuff
shifty11 Feb 26, 2024
d701534
chore: do CI/CD stuff
shifty11 Feb 26, 2024
fe26a9c
chore: do CI/CD stuff
shifty11 Feb 26, 2024
85a9bb9
chore: do CI/CD stuff
shifty11 Feb 26, 2024
3ef40f7
chore: do CI/CD stuff
shifty11 Feb 26, 2024
7bd9e4d
chore: do CI/CD stuff
shifty11 Feb 26, 2024
116d0ad
chore: do CI/CD stuff
shifty11 Feb 26, 2024
e926f2f
chore: do CI/CD stuff
shifty11 Feb 26, 2024
16cdd84
chore: do CI/CD stuff
shifty11 Feb 26, 2024
c452b06
chore: do CI/CD stuff
shifty11 Feb 26, 2024
6505bec
chore: do CI/CD stuff
shifty11 Feb 26, 2024
c89ab07
chore: do CI/CD stuff
shifty11 Feb 26, 2024
c2c64ff
chore: do CI/CD stuff
shifty11 Feb 26, 2024
0216295
chore: do CI/CD stuff
shifty11 Feb 26, 2024
548188f
chore: do CI/CD stuff
shifty11 Feb 26, 2024
0a8a5a3
fix: docker release
shifty11 Feb 26, 2024
563d240
Merge remote-tracking branch 'upstream/rapha/dockerization'
shifty11 Feb 26, 2024
d170c22
chore: do CI/CD stuff
shifty11 Feb 26, 2024
dce2b26
chore: do CI/CD stuff
shifty11 Feb 26, 2024
2255f65
chore: do CI/CD stuff
shifty11 Feb 26, 2024
59e6bcd
chore: do CI/CD stuff
shifty11 Feb 26, 2024
03db891
fix: go release
shifty11 Feb 26, 2024
48a0bca
chore: add common to release
shifty11 Feb 26, 2024
0f04e0e
chore: change kyvejs to kyve-rdk in goutils
shifty11 Feb 26, 2024
13b7da3
chore: change kyvejs to kyve-rdk in kysor and kystrap
shifty11 Feb 26, 2024
57f882a
chore: do CI/CD stuff
shifty11 Feb 26, 2024
ff82cee
fix: make kysor work again
shifty11 Feb 26, 2024
f711bd0
chore: remove kyvejs from templates
shifty11 Feb 26, 2024
b9caf54
chore: update runtime.proto
shifty11 Feb 26, 2024
1ee457e
Merge remote-tracking branch 'upstream/rapha/dockerization'
shifty11 Feb 26, 2024
056b262
fix: tags issue in release script
shifty11 Feb 26, 2024
fc661bb
chore: run format & lint
shifty11 Feb 26, 2024
5f12aec
chore: add same info for docker build
shifty11 Feb 26, 2024
9f19e10
fix: e2e tests in go template
shifty11 Feb 26, 2024
083aed8
fix: typescript issues that broke the tests
shifty11 Feb 26, 2024
c83274f
fix: e2e tests
shifty11 Feb 26, 2024
21ef815
Merge remote-tracking branch 'upstream/rapha/dockerization'
shifty11 Feb 26, 2024
9f6da1c
fix: max size for grpc calls in go
shifty11 Feb 27, 2024
2fcb2a4
feat: pass versions for kysor and go runtimes
shifty11 Feb 27, 2024
5297b5c
Merge remote-tracking branch 'upstream/rapha/dockerization'
shifty11 Feb 27, 2024
0c157a5
fix: go lint issue
shifty11 Feb 27, 2024
73bea7b
feat: add GetFromUrl for go template
shifty11 Feb 27, 2024
16a7435
fix: typo
shifty11 Feb 27, 2024
7fe6838
feat: add protocol-build-dir and runtime-build-dir flags
shifty11 Feb 27, 2024
1be0e10
feat: add PromptYesNo and GetStringFromFlag
shifty11 Feb 27, 2024
5241eef
feat: add AdvancedOptions to "kysor start" cmd
shifty11 Feb 27, 2024
b847949
fix: versioning bug
shifty11 Feb 27, 2024
c58721e
feat: set version in protocol and typescript runtimes
shifty11 Mar 4, 2024
4ddfeb1
fix: kysor build version
shifty11 Mar 4, 2024
6a2cc61
feat: set version in templates
shifty11 Mar 4, 2024
bb44b9e
chore: refactor code
shifty11 Mar 4, 2024
9a9e16a
fix: expose metrics port
shifty11 Mar 4, 2024
f836848
chore: use latest goutil
shifty11 Mar 4, 2024
07e6b31
chore: update go version to 1.22
shifty11 Mar 4, 2024
5aedd08
chore: set default value for docker version
shifty11 Mar 4, 2024
ea6dbfc
fix: e2e tests
shifty11 Mar 4, 2024
d417004
fix: e2e tests
shifty11 Mar 4, 2024
efa0f8f
fix: e2e tests
shifty11 Mar 4, 2024
52f33fb
chore: remove unused properties
shifty11 Mar 5, 2024
0783beb
fix: go caching in CI/CD
shifty11 Mar 5, 2024
c785726
chore: merge upstream
shifty11 Mar 5, 2024
a52a9c9
chore: run formatter
shifty11 Mar 5, 2024
351d3c6
chore: remove typescript leftovers
shifty11 Mar 5, 2024
349c6f1
chore: remove AutoDownloadBinaries from kysor config
shifty11 Mar 5, 2024
a134549
fix: go.sum path in CI/CD
shifty11 Mar 5, 2024
09c351c
chore: generate proto files
shifty11 Mar 5, 2024
1ebb445
chore: remove unused files from protocol
shifty11 Mar 5, 2024
bd46f32
fix: yarn in CI/CD pipeline
shifty11 Mar 5, 2024
c0fef82
fix: add direct-channel again (as test file)
shifty11 Mar 5, 2024
f58de74
feat: add status command to kysor
shifty11 Mar 5, 2024
b68b9cb
feat: add search mode in goutils
shifty11 Mar 5, 2024
ce899a1
feat: add search mode in kysor
shifty11 Mar 5, 2024
cf2417c
feat: support multiple rest/rpc endpoints
shifty11 Mar 5, 2024
b01153c
chore: update docs
shifty11 Mar 6, 2024
60f9cf5
feat: add update check to kysor
shifty11 Mar 6, 2024
01fbd8c
Merge remote-tracking branch 'upstream/rapha/dockerization'
shifty11 Mar 6, 2024
3b11e39
fix: make a small change
shifty11 Mar 7, 2024
98d18b5
chore: CI/CD
shifty11 Mar 7, 2024
9f58ded
chore: CI/CD
shifty11 Mar 7, 2024
6cfb2b8
chore: CI/CD
shifty11 Mar 7, 2024
a6c136d
chore: CI/CD
shifty11 Mar 7, 2024
f14752f
chore: CI/CD
shifty11 Mar 7, 2024
e60993e
chore: CI/CD
shifty11 Mar 7, 2024
2bf38ff
chore: CI/CD
shifty11 Mar 7, 2024
96ed292
chore: CI/CD
shifty11 Mar 7, 2024
d0336df
chore: CI/CD
shifty11 Mar 7, 2024
a3a802d
chore: CI/CD
shifty11 Mar 7, 2024
7682687
chore: CI/CD
shifty11 Mar 7, 2024
aa05f2a
chore: CI/CD
shifty11 Mar 7, 2024
bad57c3
chore: CI/CD
shifty11 Mar 7, 2024
1652e2b
chore: CI/CD
shifty11 Mar 7, 2024
408ef93
chore: CI/CD
shifty11 Mar 7, 2024
eb88b5e
chore: CI/CD
shifty11 Mar 7, 2024
58bc95c
chore: CI/CD
shifty11 Mar 7, 2024
f67e8ad
chore(main): release 1.0.0
github-actions[bot] Mar 7, 2024
dc346dc
Update CHANGELOG.md
shifty11 Mar 11, 2024
b8d3858
Merge pull request #2 from shifty11/release-please--branches--main
shifty11 Mar 11, 2024
72889c1
chore: CI/CD
shifty11 Mar 11, 2024
097cd53
feat: new stuff
shifty11 Mar 11, 2024
023e034
fix: the bug
shifty11 Mar 11, 2024
5f87be1
fix: the bug
shifty11 Mar 11, 2024
9ba3585
fix: the bug
shifty11 Mar 11, 2024
745c031
fix: the bug
shifty11 Mar 11, 2024
a8f839e
fix: the bug
shifty11 Mar 11, 2024
84a0556
fix: the bug
shifty11 Mar 11, 2024
033fd02
fix: the bug
shifty11 Mar 11, 2024
914d472
fix: the bug
shifty11 Mar 11, 2024
be54023
fix: the bug
shifty11 Mar 11, 2024
cb43760
fix: the bug
shifty11 Mar 11, 2024
877399f
fix: the bug
shifty11 Mar 11, 2024
d55b626
fix: the bug
shifty11 Mar 11, 2024
35f839c
fix: the bug
shifty11 Mar 11, 2024
e0ed915
fix: the bug
shifty11 Mar 11, 2024
11d4254
fix: the bug
shifty11 Mar 11, 2024
78be530
fix: the bug
shifty11 Mar 11, 2024
711b98a
fix: the bug
shifty11 Mar 11, 2024
6e18a52
fix!: new fancy breaking change
shifty11 Mar 11, 2024
7c8f560
fix!: new fancy breaking change
shifty11 Mar 11, 2024
83537f5
fix!: new fancy breaking change
shifty11 Mar 11, 2024
afd09b0
fix!: new fancy breaking change
shifty11 Mar 11, 2024
91f2b2e
fix!: new fancy breaking change
shifty11 Mar 11, 2024
a40fee3
fix!: new fancy breaking change
shifty11 Mar 11, 2024
80ac426
fix!: new fancy breaking change
shifty11 Mar 11, 2024
9627a96
fix!: change
shifty11 Mar 11, 2024
83acaf1
feat: change
shifty11 Mar 11, 2024
bb2e36c
feat: change
shifty11 Mar 11, 2024
896dfa6
feat: change
shifty11 Mar 11, 2024
a1e820c
chore(main): release protocol 1.0.0
github-actions[bot] Mar 11, 2024
f5ff822
Merge pull request #6 from shifty11/release-please--branches--main--c…
shifty11 Mar 11, 2024
164de13
feat: add packages
shifty11 Mar 11, 2024
4f4bee4
feat: add packages
shifty11 Mar 11, 2024
37573bf
feat: add packages
shifty11 Mar 11, 2024
816f0b6
feat: add packages
shifty11 Mar 11, 2024
dd3dd26
feat: add packages
shifty11 Mar 11, 2024
12a828c
feat: add packages
shifty11 Mar 11, 2024
af6ed02
feat: add packages
shifty11 Mar 11, 2024
016ce8d
chore: release main
github-actions[bot] Mar 11, 2024
7eded50
Merge pull request #7 from shifty11/release-please--branches--main
shifty11 Mar 11, 2024
bc8a43b
chore: update CI/CD
shifty11 Mar 11, 2024
65e95cd
chore: release main
github-actions[bot] Mar 11, 2024
35c3d2d
Merge pull request #9 from shifty11/release-please--branches--main
shifty11 Mar 11, 2024
ca1a14a
chore: update CI/CD
shifty11 Mar 11, 2024
e2e427c
chore: release main
github-actions[bot] Mar 11, 2024
eabd008
Merge pull request #10 from shifty11/release-please--branches--main
shifty11 Mar 11, 2024
31170dd
chore: update CI/CD
shifty11 Mar 11, 2024
6c2655a
fix: small bug in protocol
shifty11 Mar 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

49 changes: 0 additions & 49 deletions .eslintrc

This file was deleted.

62 changes: 62 additions & 0 deletions .github/scripts/check_changes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
const util = require('util');
const exec = util.promisify(require('child_process').exec);
const fs = require('fs');
const path = require('path');

// Check if the project in the given folder has any changes.
async function has_changes(folder, latest_tag) {
// If the latest tag is empty, then there are changes
if (!latest_tag) {
return true;
}

// Check for changes
const { stdout } = await exec(`git diff "${latest_tag}" "${folder}"`);
return stdout.trim() !== '';
}

function list_projects() {
const listFolders = (dir) => fs.readdirSync(dir, { withFileTypes: true })
.filter(dirent => dirent.isDirectory())
.map(dirent => path.join(dir, dirent.name));

const common = listFolders('common').filter(folder => !folder.endsWith('proto'));
const protocol = listFolders('protocol');
const runtime = listFolders('runtime');
const tools = listFolders('tools');

return [...common, ...protocol, ...runtime, ...tools];
}

async function get_latest_tag(branch_name) {
// Get all tags on main branch
const { stdout: tags } = await exec(`git tag --list "${branch_name}@*" --sort=-v:refname`);

// Split tags by newline and filter by semantic versioning
const semver_tags = tags.split('\n').filter(tag => /^.*@(\d+)\.(\d+)\.(\d+)$/.test(tag));

// If there are no tags, return an empty string
if (semver_tags.length === 0) {
return '';
}

// Get the latest semver tag
return semver_tags[0];
}

async function main() {
const projects = list_projects();
const changed_projects = [];
for (const project of projects) {
const latest_tag = await get_latest_tag(project);
const changes = await has_changes(project, latest_tag.trim());
if (changes) {
console.log(`${project} has changes since ${latest_tag}`);
changed_projects.push(project);
}
}
const paths = Array.from(changed_projects);
console.log(`::set-output name=projects::${paths}`);
}

main().catch(console.error);
17 changes: 0 additions & 17 deletions .github/workflows/build-check.yaml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Check all

on:
workflow_call:

jobs:
lint:
uses: ./.github/workflows/checks_lint.yml

build-docker-images:
uses: ./.github/workflows/checks_build-docker-images.yml
18 changes: 18 additions & 0 deletions .github/workflows/checks_build-docker-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build docker images check

on:
workflow_call:

jobs:
build-docker-images:
name: 'build docker images'
runs-on: ubuntu-latest
outputs:
docker: ${{ steps.set-env.outputs.docker }}
steps:
# Checkout the repository
- name: Checkout the repository
uses: actions/checkout@v4
# Build docker images
- name: Build docker images
run: make build-docker-images
33 changes: 33 additions & 0 deletions .github/workflows/checks_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Lint check

on:
workflow_call:

jobs:
lint:
runs-on: ubuntu-latest
env:
npm_config_user: "root"
steps:
# Checkout the repository
- name: Checkout the repository
uses: actions/checkout@v4
# Setup Golang
- name: 🐿 Setup Golang
uses: actions/setup-go@v4
with:
go-version-file: 'tools/kysor/go.mod'
cache-dependency-path: 'tools/kysor/go.sum'
# Install nodejs
- name: Install nodejs
uses: actions/setup-node@v4
# Install yarn
- name: Install yarn
run: npm install --global yarn
# Run yarn install
- name: Run yarn install
run: yarn install
working-directory: protocol/core
# Lint all modules and packages
- name: Lint all
run: make lint
80 changes: 0 additions & 80 deletions .github/workflows/integration-release.yaml

This file was deleted.

81 changes: 0 additions & 81 deletions .github/workflows/kysor-release.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/lint-checks.yaml

This file was deleted.

Loading
Loading