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/CD github workflows #25

Closed
wants to merge 141 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
0510ccf
Merge pull request #386 from humanprotocol/develop
portuu3 Apr 26, 2023
0ed7340
Merge pull request #431 from humanprotocol/develop
portuu3 Apr 28, 2023
d2c6738
Merge pull request #460 from humanprotocol/develop
portuu3 May 11, 2023
fd08326
Merge pull request #462 from humanprotocol/develop
portuu3 May 12, 2023
2a05aa7
Merge pull request #466 from humanprotocol/develop
portuu3 May 12, 2023
8147c9e
Merge pull request #469 from humanprotocol/develop
portuu3 May 15, 2023
546595d
Merge pull request #492 from humanprotocol/develop
portuu3 May 22, 2023
dcb4ba6
Merge pull request #494 from humanprotocol/develop
portuu3 May 26, 2023
534648d
Merge pull request #508 from humanprotocol/develop
portuu3 May 26, 2023
fe799c4
Merge pull request #516 from humanprotocol/develop
portuu3 May 29, 2023
6019f76
Merge pull request #530 from humanprotocol/develop
portuu3 May 31, 2023
318437b
Merge branch 'develop'
portuu3 Jun 1, 2023
2904694
Merge branch 'develop'
portuu3 Jun 1, 2023
98c3714
Merge pull request #659 from humanprotocol/develop
portuu3 Jul 10, 2023
76f42da
Bump semver from 5.7.1 to 5.7.2 (#674)
dependabot[bot] Jul 14, 2023
19fc7a8
Merge pull request #693 from humanprotocol/develop
portuu3 Jul 18, 2023
8bf0a72
Merge pull request #753 from humanprotocol/develop
portuu3 Aug 8, 2023
b1b6fbf
fix: packages/examples/fortune/launcher/client/Dockerfile to reduce v…
basit511 Aug 15, 2023
c7648cd
fix: packages/examples/fortune/exchange-oracle/client/Dockerfile to r…
basit511 Aug 15, 2023
8377c28
Merge pull request #816 from humanprotocol/develop
leric7 Aug 22, 2023
0f17aa2
Merge pull request #828 from humanprotocol/develop
leric7 Aug 24, 2023
df7b351
Merge pull request #864 from humanprotocol/develop
leric7 Sep 4, 2023
fcf6adc
Merge pull request #897 from humanprotocol/develop
portuu3 Sep 18, 2023
f9f6469
Merge pull request #973 from humanprotocol/develop
leric7 Oct 3, 2023
99e1c8a
Merge pull request #1042 from humanprotocol/develop
portuu3 Oct 11, 2023
b8c2f9f
Merge pull request #1069 from humanprotocol/develop
portuu3 Oct 19, 2023
9af8495
Merge pull request #1093 from humanprotocol/develop
leric7 Oct 19, 2023
062deed
Merge pull request #1228 from humanprotocol/develop
portuu3 Nov 9, 2023
dbab9b3
Merge pull request #1234 from humanprotocol/develop
portuu3 Nov 10, 2023
a3d60d6
Merge pull request #1243 from humanprotocol/develop
portuu3 Nov 14, 2023
af0f5ef
Merge pull request #1266 from humanprotocol/develop
portuu3 Nov 24, 2023
420fd66
Merge pull request #1298 from humanprotocol/develop
portuu3 Dec 1, 2023
a40a370
Merge pull request #1324 from humanprotocol/develop
portuu3 Dec 7, 2023
43effd2
Merge pull request #1339 from humanprotocol/develop
portuu3 Dec 14, 2023
4a1d283
Merge pull request #1353 from humanprotocol/develop
portuu3 Dec 14, 2023
07c94f9
Merge pull request #1370 from humanprotocol/develop
portuu3 Dec 18, 2023
60999f7
Merge pull request #1378 from humanprotocol/develop
portuu3 Dec 19, 2023
0962bb5
Merge pull request #1381 from humanprotocol/develop
portuu3 Dec 19, 2023
42b1290
feat: add initial NestJS project setup
MWBlocky Feb 2, 2024
2e9120b
Adds Project structure section in documentation
macnablocky Feb 2, 2024
64411bf
Merge pull request #5 from blockydevs/project-setup
MWBlocky Feb 5, 2024
f9f48b6
feat: add swagger setup
MWBlocky Feb 5, 2024
2a0a745
feat: add env config service
MWBlocky Feb 5, 2024
3a56fc8
feat: redirection to swagger endpoint
MWBlocky Feb 5, 2024
744a08b
feat: add worker registration
MWBlocky Feb 5, 2024
5a01369
feat: separation auth logic to new module
MWBlocky Feb 5, 2024
f03c97a
feat: separation api integration logic
MWBlocky Feb 6, 2024
8300eb3
feat: add command type class for business layer
MWBlocky Feb 6, 2024
12e0860
bug fixed
MWBlocky Feb 6, 2024
5caea62
feat: add logger
MWBlocky Feb 6, 2024
2f386e8
feat: add env variable service and validation
MWBlocky Feb 6, 2024
db09804
chore: rename integration service to gateway
MWBlocky Feb 6, 2024
ff15a13
Adds unit test configuration, fixes unit test
macnablocky Feb 6, 2024
17694e6
chore: code refactoring
MWBlocky Feb 7, 2024
a2d8332
Merge pull request #6 from blockydevs/worker-registration
MWBlocky Feb 7, 2024
2e30147
feat: Adds operator-registration DRAFT
macnablocky Feb 7, 2024
5aff609
feat: Adds operator-registration DRAFT
macnablocky Feb 7, 2024
f300acf
feat: Adds operator-registration UNDRAFT
macnablocky Feb 8, 2024
21cc592
feat: Adds operator-registration fixes after testing
macnablocky Feb 8, 2024
444f5cd
chore: adds service mocks
macnablocky Feb 8, 2024
038680e
chore: reworks integrations directory, adds config module, updates RE…
macnablocky Feb 8, 2024
6ded97c
chore: adds unit tests for Reputation Oracle Gateway, fixes bug
macnablocky Feb 8, 2024
376f63d
chore: review fixes
macnablocky Feb 8, 2024
f2159f8
chore: adds unit tests for controllers and services, adds and reworks…
macnablocky Feb 9, 2024
6d88391
Chore: Removes unnecessary mapper
macnablocky Feb 9, 2024
199ce5c
Chore: Changes in directory naming
macnablocky Feb 9, 2024
ecf479e
Chore: Adds common data type interfaces requested in reputation oracl…
macnablocky Feb 9, 2024
302469a
Update worker.controller.spec.ts
macnablocky Feb 9, 2024
04a84ae
Update reputation-oracle.gateway.spec.ts
macnablocky Feb 9, 2024
81b5a9a
Chore: minor fixes in test names, removal of unnecessary mapper in test
macnablocky Feb 9, 2024
7724680
Merge pull request #8 from blockydevs/operator-registration
macnablocky Feb 9, 2024
8556d44
bug fixed
MWBlocky Feb 9, 2024
3af3736
feat: add signin user worker endpoint
MWBlocky Feb 9, 2024
88a32f7
feat: add signin user worker unit tests
MWBlocky Feb 9, 2024
6871675
E2e testing (#7)
macnablocky Feb 9, 2024
e104972
Merge branch 'main' of github.com:blockydevs/human-protocol into work…
MWBlocky Feb 9, 2024
36b101a
feat: add tests for worker signin
MWBlocky Feb 9, 2024
4865ae7
feat: create new environment config for e2e tests
MWBlocky Feb 9, 2024
a63253f
chore: worker controller better test naming
MWBlocky Feb 12, 2024
37514f3
Merge pull request #9 from blockydevs/worker-signin
MWBlocky Feb 12, 2024
2fd83f4
chore: removed unused service file
MWBlocky Feb 13, 2024
8a024aa
Merge remote-tracking branch 'human-protocol/develop'
MWBlocky Feb 20, 2024
36bc548
Merge pull request #1467 from humanprotocol/develop
portuu3 Feb 20, 2024
7d7760a
Merge pull request #12 from blockydevs/blockydevs_pr1590_conflicts_re…
BartoszSolkaBD Feb 20, 2024
74ff5cb
Merge pull request #1611 from humanprotocol/develop
portuu3 Feb 20, 2024
b05a8e7
Draft: ro finnish
macnablocky Feb 29, 2024
dc83c91
removes, unnecessary docker related files
macnablocky Feb 29, 2024
564fe7d
feat: add jobs discovery endpoint
MWBlocky Mar 1, 2024
ece9843
Changes method naming, adda automapper
macnablocky Mar 1, 2024
a7004db
feat: add unit tests for jobs discovery
MWBlocky Mar 1, 2024
a7bbc4b
Merge branch 'humanprotocol:main' into main
BartoszSolkaBD Mar 4, 2024
efb6250
feat: jobs assignment
MWBlocky Mar 4, 2024
b4a5b47
fix ts sdk docs (#1610)
portuu3 Feb 20, 2024
b472a51
feat: fixes + e2e tests
MWBlocky Mar 4, 2024
90f4009
Adds minor reworks and logging
macnablocky Mar 4, 2024
9af9ea7
feat: e2e test
MWBlocky Mar 4, 2024
dc77827
feat: exception filters
MWBlocky Mar 4, 2024
929a08d
Adds testing
macnablocky Mar 4, 2024
c649fbf
Adds minor review fixes
macnablocky Mar 4, 2024
f4b2643
chore: adds enums
MWBlocky Mar 5, 2024
824fe6e
chore: exchange oracle url passed to query fields
MWBlocky Mar 5, 2024
e369461
Merge pull request #17 from blockydevs/error_handling
MWBlocky Mar 5, 2024
64ea1ba
Merge branch 'main' of github.com:blockydevs/human-protocol into 10-j…
MWBlocky Mar 5, 2024
8e9b479
Merge pull request #15 from blockydevs/10-jobs-discovery
MWBlocky Mar 5, 2024
ed7d548
Merge branch 'main' of github.com:blockydevs/human-protocol into 11-j…
MWBlocky Mar 5, 2024
4ba85d0
chore: changes after code review
MWBlocky Mar 5, 2024
9f4d85f
Merge remote-tracking branch 'origin/main' into #13-Oracles-discovery
macnablocky Mar 5, 2024
ccc9b83
Merge branch 'main' into #13-Oracles-discovery
macnablocky Mar 5, 2024
a1b5119
chore: better class naming
MWBlocky Mar 5, 2024
78b649f
chore: params required fields fix
MWBlocky Mar 5, 2024
051f0ad
chore: example url changed for fixtures
MWBlocky Mar 5, 2024
a7545e5
Merge pull request #16 from blockydevs/11-job-assignment
MWBlocky Mar 5, 2024
6013b51
Adds minor review fixes
macnablocky Mar 5, 2024
c4a296c
Merge branch 'main' into #13-Oracles-discovery
macnablocky Mar 5, 2024
c3f5d01
Minor dependencies changes
macnablocky Mar 5, 2024
8559534
Merge remote-tracking branch 'origin/#13-Oracles-discovery' into #13-…
macnablocky Mar 5, 2024
03150d1
feat: middleware to pass the auth token
MWBlocky Mar 5, 2024
66c090b
Merge pull request #18 from blockydevs/authorization-token-handling
MWBlocky Mar 5, 2024
0582424
Minor dependencies changes
macnablocky Mar 5, 2024
0f6cfba
Finalizes statistics endpoints handling,
macnablocky Mar 5, 2024
dede81c
Fixes after review
macnablocky Mar 6, 2024
3e0f370
Merge branch 'main' into #13-Oracles-discovery
macnablocky Mar 6, 2024
37d5bd4
fix: unit tests
MWBlocky Mar 6, 2024
c9e2637
Merge pull request #21 from blockydevs/unit_tests_fix
MWBlocky Mar 6, 2024
70bcf51
Merge pull request #14 from blockydevs/#13-Oracles-discovery
macnablocky Mar 6, 2024
a39c1ba
Adds statistics data caching and unit tests
macnablocky Mar 6, 2024
b1d5381
Merge branch 'main' into #Statistics-Exchange-oracle
macnablocky Mar 6, 2024
2248785
Fixes after main merge, undraft
macnablocky Mar 6, 2024
82ad885
feat: CI/CD
MWBlocky Mar 6, 2024
6f3d713
Fixes after review
macnablocky Mar 7, 2024
0df7680
WIP: refactoring after review
macnablocky Mar 11, 2024
efe227b
Fixtures alignment
macnablocky Mar 12, 2024
68d0e3d
Fixes
macnablocky Mar 12, 2024
10a9bf5
Aligns and adds testing
macnablocky Mar 12, 2024
15194c6
fix(cr): Reduced redundant configuration
MWBlocky Mar 13, 2024
7595c10
Unwip: finalization of the tests, workaround in mappers, due to faili…
macnablocky Mar 13, 2024
74713a4
Fix in log
macnablocky Mar 13, 2024
65a782c
Merge pull request #20 from blockydevs/#Statistics-Exchange-oracle
macnablocky Mar 14, 2024
f0c8f04
Merge branch 'main' of github.com:blockydevs/human-protocol into 22-c…
MWBlocky Mar 14, 2024
c1ee924
fix(unit tests): env validation skipped
MWBlocky Mar 14, 2024
ee32bde
Merge do develop branch
MWBlocky Mar 22, 2024
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
23 changes: 23 additions & 0 deletions .github/workflows/ci-test-human-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Human App Check

on:
push:
branches:
- "main"
pull_request:
paths:
- "packages/core/**"
- "packages/sdk/typescript/human-protocol-sdk/**"
- "packages/apps/human-app/**"
workflow_dispatch:

jobs:
job-app-server-test:
name: Human App Server Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install --global yarn && yarn
name: Install dependencies
- run: yarn human-app-server:test
name: Run Job Human App unit tests
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"fortune-v3:lint": "yarn workspace @human-protocol/fortune-v3 lint",
"job-launcher-server:test": "yarn workspace @human-protocol/job-launcher-server test",
"job-launcher-server:lint": "yarn workspace @human-protocol/job-launcher-server lint",
"human-app-server:test": "yarn workspace @human-protocol/human-app-server test",
"human-app-server:lint": "yarn workspace @human-protocol/human-app-server lint",
"job-launcher-client:test": "yarn workspace @human-protocol/job-launcher-client test",
"job-launcher-client:lint": "yarn workspace @human-protocol/job-launcher-client lint",
"reputation-oracle:test": "yarn workspace @human-protocol/reputation-oracle test",
Expand Down
5 changes: 5 additions & 0 deletions packages/apps/human-app/server/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Dockerfile
.dockerignore
node_modules
npm-debug.log
dist
17 changes: 17 additions & 0 deletions packages/apps/human-app/server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Base image
FROM node:18

# Create app directory
WORKDIR /usr/src/app

# Bundle app source
COPY . .

# Install app dependencies
RUN yarn install

# Creates a "dist" folder with the production build
RUN yarn workspace @human-protocol/human-app-server build

# Start the server using the production build
CMD [ "node", "packages/apps/human-app/server/dist/src/main.js" ]
21 changes: 21 additions & 0 deletions packages/apps/human-app/server/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: '3.8'

services:
human-app:
container_name: human-app
restart: unless-stopped
build:
context: ../../../../
dockerfile: packages/apps/human-app/server/Dockerfile
expose:
- '${PORT}'
ports:
- '${LOCAL_PORT}:${PORT}'
environment:
NODE_ENV: ${NODE_ENV}
HOST: ${HOST}
PORT: ${PORT}
REPUTATION_ORACLE_URL: ${REPUTATION_ORACLE_URL}
REDIS_PORT: ${REDIS_PORT}
REDIS_HOST: ${REDIS_HOST}
CACHE_TTL_ORACLE_DISCOVERY: ${CACHE_TTL_ORACLE_DISCOVERY}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ describe('OracleDiscoveryService', () => {
ConfigModule.forRoot({
envFilePath: '.env',
isGlobal: true,
validationSchema: envValidator,
}),
],
providers: [
Expand Down
21 changes: 21 additions & 0 deletions packages/apps/human-app/server/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": 2,
"builds": [
{
"src": "src/main.ts",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "src/main.ts",
"headers": {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "*",
"Access-Control-Allow-Headers": "X-Requested-With,Content-Type,Accept"
}
}
],
"ignoreCommand": "git diff HEAD^ HEAD --quiet ."
}