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

ci: merge staging to master #4

Merged
merged 57 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
3d3de6e
feat: copying `Typescript-demo-lib` as a template
tegefaulkes Jul 21, 2023
825f7cd
feat: copied over CLI bin code
tegefaulkes Jul 21, 2023
f33f8d6
feat: copied over CLI bin tests
tegefaulkes Jul 21, 2023
c2741dd
fix: fixing up tests
tegefaulkes Jul 21, 2023
f8cbfc0
fix: updated `PolykeyClient` usage
tegefaulkes Jul 27, 2023
df836c7
tests: fixed tests
tegefaulkes Jul 27, 2023
dfe66c9
tests: disabled vaults clone test for now
tegefaulkes Jul 28, 2023
fac79cb
ci: updated CI jobs
tegefaulkes Jul 28, 2023
386cfeb
test: fixed broken mocking
tegefaulkes Jul 28, 2023
4b84ea8
refactor: moving `nat` and `integration` tests
tegefaulkes Aug 1, 2023
a42ff4c
build: moving some `README.md` information and updating `package.json`
tegefaulkes Aug 3, 2023
249c70c
fix: fixing up polykey dependency
tegefaulkes Aug 4, 2023
08747dc
build: copied over configs
tegefaulkes Aug 4, 2023
582115d
tests: disabled `nat` tests
tegefaulkes Aug 4, 2023
43cb1e0
tests: all tests passing
tegefaulkes Aug 4, 2023
71a9df8
fix: dependency and CI fixes
tegefaulkes Aug 4, 2023
75717b2
build: getting `pkg` working
tegefaulkes Aug 7, 2023
15c755f
Merge pull request #2 from MatrixAI/feature-CLI_migration
tegefaulkes Aug 7, 2023
bdb6dc7
ci: disabled windows and macos build job
tegefaulkes Aug 7, 2023
1380d13
build: regenerating `package-lock.json` as version 2 to support `node…
tegefaulkes Aug 7, 2023
6db2859
fix: migrated nodemon from Polykey
CMCDragonkai Aug 11, 2023
f6004f5
deps: removed `uuid`, updated `polykey` to `1.1.5-alpha.0`, added `@t…
CMCDragonkai Aug 15, 2023
8424113
chore: adding Amy Yan to contributors
CMCDragonkai Aug 16, 2023
6325eb3
chore: changed Polykey-CLI to GPL-3.0
CMCDragonkai Aug 16, 2023
1ed37c9
chore: removed `polykeyStartupTimeout`, as it is no longer used
CMCDragonkai Aug 16, 2023
6aa0482
fix: Polykey-CLI errors are now under their own error hierarchy
CMCDragonkai Aug 15, 2023
c95f84d
fix: agent host and port is currently in `polykey.quicSocket`
CMCDragonkai Aug 16, 2023
fb5bfa1
feat: add an `index.ts` to export the package
CMCDragonkai Aug 16, 2023
52c2985
fix: `main` and `types` to be set for `pakcage.json` and updateing sc…
CMCDragonkai Aug 16, 2023
9ad6ae3
fix: updated `package-lock.json`
CMCDragonkai Aug 16, 2023
7cc4dba
fix: removed usages of `@matrixai/id`
CMCDragonkai Aug 16, 2023
080bcab
wip: figuring out alignment of configuration and defaults
CMCDragonkai Aug 16, 2023
e643181
wip: updating src to reflect new `Polykey` version `1.2.0`
tegefaulkes Oct 5, 2023
a54eaa9
fix: fixed to use new parameters for starting an agent
tegefaulkes Oct 5, 2023
bc1879a
Merge pull request #20 from MatrixAI/feature-eliminate-id-quic-alignment
tegefaulkes Oct 5, 2023
f8849e1
feat: integrating testnet 6 version of polykey
tegefaulkes Oct 5, 2023
2ef4aa9
fix: working releases
CMCDragonkai Oct 17, 2023
dd5fb99
fix: `node.id` has been updated to `node.nodeId` within `src/identiti…
amydevs Oct 13, 2023
60a20d5
docs: updated README
CMCDragonkai Oct 13, 2023
12a69f7
fix: fixes for parsers and type annotations
amydevs Oct 13, 2023
28cb2c7
docs: updated README.md
CMCDragonkai Oct 16, 2023
eaedd66
deps: updated polykey with quic at 1.0.0 and windows native build
CMCDragonkai Oct 17, 2023
ce65d52
fix: adding `threads` to `optionalDependencies`
tegefaulkes Oct 17, 2023
c73d87f
fix: integrated the new nix code to gitlab CI
CMCDragonkai Oct 17, 2023
7f6dbea
ci: added `chocolateyProfile.psm1` to the `integration:windows` script
CMCDragonkai Oct 17, 2023
331b9f8
fix: fixed keys renew and reset tests
tegefaulkes Oct 17, 2023
ee1de51
ci: mac and windows to use node 18.15
CMCDragonkai Oct 17, 2023
68f9c7d
Merge pull request #26 from MatrixAI/feature-bundling
CMCDragonkai Oct 17, 2023
0c29de4
fix: spurious `console.log`
CMCDragonkai Oct 17, 2023
8f80d1f
ci: `npmDepsHash` can only be calculated within `nix-shell`
CMCDragonkai Oct 17, 2023
41273c6
ci: shell.nix needs awscli2 for deployment
CMCDragonkai Oct 17, 2023
138fcdf
ci: recovered the `deploy-service.sh`
CMCDragonkai Oct 17, 2023
de054e5
ci: `integration:nix` should be exexcuting `bin/polykey`
CMCDragonkai Oct 17, 2023
3612eb3
ci: new native bindings rely on requiring the package name, which mea…
CMCDragonkai Oct 17, 2023
1158a67
ci: no need to have `pkg` bundle `tslib` and `tsyringe`
CMCDragonkai Oct 17, 2023
5354256
fix: fixed test failures for `integration:docker`
tegefaulkes Oct 18, 2023
e029c8d
fix: missed one fix for `ping.test.ts`
tegefaulkes Oct 18, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
40 changes: 40 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Unused atm (jest sets this to `test`)
NODE_ENV=development

# Debug node modules - https://nodejs.org/api/cli.html#node_debugmodule
# NODE_DEBUG=

# Debug node native modules - https://nodejs.org/api/cli.html#node_debug_nativemodule
# NODE_DEBUG_NATIVE=

# Path to PK executable to override tests/bin target
# PK_TEST_COMMAND=

# If set, indicates that `PK_TEST_COMMAND` is targetting docker
# PK_TEST_COMMAND_DOCKER=
# Accessing AWS for testnet.polykey.io and mainnet.polykey.io deployment
AWS_DEFAULT_REGION='ap-southeast-2'
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=

# Path to container registry authentication file used by `skopeo`
# The file has the same contents as `DOCKER_AUTH_CONFIG`
# Use this command to acquire the auth file at `./tmp/auth.json`:
# ```
# printf 'PASSWORD' | skopeo login \
# --username 'USERNAME' \
# --password-stdin \
# $CI_REGISTRY_IMAGE \
# --authfile=./tmp/auth.json
# ```
# REGISTRY_AUTH_FILE=

# Authenticate to GitHub with `gh`
# GITHUB_TOKEN=

# To allow testing different executables in the bin tests
# Both PK_TEST_COMMAND and PK_TEST_PLATFORM must be set at the same time
# PK_TEST_COMMAND= #Specify the shell command we want to test against
# PK_TEST_PLATFORM=docker #Overrides the auto set `testPlatform` variable used for enabling platform specific tests
# PK_TEST_TMPDIR= #Sets the `global.tmpDir` variable to allow overriding the temp directory used for tests

1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/proto/*
178 changes: 178 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true,
"node": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"plugins": [
"import"
],
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"rules": {
"linebreak-style": ["error", "unix"],
"no-empty": 1,
"no-useless-catch": 1,
"no-prototype-builtins": 1,
"no-constant-condition": 0,
"no-useless-escape": 0,
"no-console": "error",
"no-restricted-globals": [
"error",
{
"name": "global",
"message": "Use `globalThis` instead"
},
{
"name": "window",
"message": "Use `globalThis` instead"
}
],
"prefer-rest-params": 0,
"require-yield": 0,
"eqeqeq": ["error", "smart"],
"spaced-comment": [
"warn",
"always",
{
"line": {
"exceptions": ["-"]
},
"block": {
"exceptions": ["*"]
},
"markers": ["/"]
}
],
"capitalized-comments": [
"warn",
"always",
{
"ignoreInlineComments": true,
"ignoreConsecutiveComments": true
}
],
"curly": [
"error",
"multi-line",
"consistent"
],
"import/order": [
"error",
{
"groups": [
"type",
"builtin",
"external",
"internal",
"index",
"sibling",
"parent",
"object"
],
"pathGroups": [
{
"pattern": "@",
"group": "internal"
},
{
"pattern": "@/**",
"group": "internal"
}
],
"pathGroupsExcludedImportTypes": [
"type"
],
"newlines-between": "never"
}
],
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-unused-vars": [
"warn",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-this-alias": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/consistent-type-imports": ["error"],
"@typescript-eslint/consistent-type-exports": ["error"],
"no-throw-literal": "off",
"@typescript-eslint/no-throw-literal": "off",
"@typescript-eslint/no-floating-promises": ["error", {
"ignoreVoid": true,
"ignoreIIFE": true
}],
"@typescript-eslint/no-misused-promises": ["error", {
"checksVoidReturn": false
}],
"@typescript-eslint/await-thenable": ["error"],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": ["camelCase"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allowSingleOrDouble"
},
{
"selector": "function",
"format": ["camelCase", "PascalCase"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allowSingleOrDouble"
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE", "PascalCase"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allowSingleOrDouble"
},
{
"selector": "parameter",
"format": ["camelCase"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allowSingleOrDouble"
},
{
"selector": "typeLike",
"format": ["PascalCase"],
"trailingUnderscore": "allowSingleOrDouble"
},
{
"selector": "enumMember",
"format": ["PascalCase", "UPPER_CASE"]
},
{
"selector": "objectLiteralProperty",
"format": null
},
{
"selector": "typeProperty",
"format": null
}
],
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-ignore": "allow-with-description"
}
]
}
}
23 changes: 23 additions & 0 deletions .github/workflows/codesee-arch-diagram.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This workflow was added by CodeSee. Learn more at https://codesee.io/
# This is v2.0 of this workflow file
on:
push:
branches:
- staging
pull_request_target:
types: [opened, synchronize, reopened]

name: CodeSee

permissions: read-all

jobs:
codesee:
runs-on: ubuntu-latest
continue-on-error: true
name: Analyze the repo with CodeSee
steps:
- uses: Codesee-io/codesee-action@v2
with:
codesee-token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
codesee-url: https://app.codesee.io
132 changes: 132 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
/tmp
/dist
.env*
!.env.example
# nix
/result*
/build
/builds
/prebuild
/prepublishOnly
/target

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# editor
.vscode/
.idea/
Loading