Skip to content

Commit

Permalink
Merge branch 'main' into as/proto-1775-rm-tcr-env
Browse files Browse the repository at this point in the history
  • Loading branch information
alecsavvy committed Apr 23, 2024
2 parents 12d494e + 8feb22b commit b30997e
Show file tree
Hide file tree
Showing 342 changed files with 4,617 additions and 3,255 deletions.
5 changes: 5 additions & 0 deletions .changeset/lucky-otters-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@audius/sdk': major
---

Change type filter on getUSDCTransactions to be an array rather than a single enum, to allow for multiple filters.
14 changes: 11 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
key: cache-{{ checksum "package-lock.json" }}-{{ checksum "combined-patch-file.txt" }}
paths:
- ./node_modules
- ./protocol-dashboard/node_modules
- ./packages/web/node_modules
- ./packages/mobile/node_modules
- ./packages/embed/node_modules
Expand Down Expand Up @@ -106,8 +107,6 @@ jobs:
- run:
name: Create + push branch
command: |
git checkout main
OLD_VERSION=$(jq -r .version packages/discovery-provider/.version.json)
NEW_VERSION=$(echo ${OLD_VERSION} | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g')
Expand All @@ -121,8 +120,17 @@ jobs:
mv /tmp/.version.json packages/discovery-provider/.version.json
git add packages/discovery-provider/.version.json
PROTOCOL_DIRS=$(bash ./scripts/get-release-dirs.sh protocol)
CHANGELOG=$(git log --pretty=format:"[%h] %s %an" --date=short protocol-v${OLD_VERSION}..HEAD -- ${PROTOCOL_DIRS})
MESSAGE="Audius Protocol v${NEW_VERSION}
${CHANGELOG}"
git commit -m "${MESSAGE}"
git tag protocol-v${NEW_VERSION}
git push origin protocol-v${NEW_VERSION}
# Weird way to push both to main and the new release branch
git commit -m "Bump version to $NEW_VERSION"
git branch "release-v$NEW_VERSION"
git checkout "release-v$NEW_VERSION"
git push --set-upstream origin main "release-v$NEW_VERSION"
Expand Down
1 change: 1 addition & 0 deletions .circleci/src/jobs/@protocol-dashboard-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ protocol-dashboard-init:
root: ./
paths:
- node_modules
- protocol-dashboard/node_modules
- packages/harmony/node_modules
- packages/common/node_modules
- packages/libs/node_modules
Expand Down
20 changes: 17 additions & 3 deletions .circleci/src/jobs/@root-jobs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Publish github release for the current tag
root-publish-github-release:
root-publish-github-release-client:
working_directory: ~/audius-protocol
docker:
- image: cibuilds/github:0.10
- image: cibuilds/github:0.13
steps:
- checkout
- attach_workspace:
Expand All @@ -13,3 +12,18 @@ root-publish-github-release:
VERSION=$(jq -r .version ./package.json)
CHANGELOG=$(git log --format=%B -n 1)
ghr -t ${GHI_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -b "${CHANGELOG}" -soft client-v${VERSION} ./
root-publish-github-release-protocol:
working_directory: ~/audius-protocol
docker:
- image: cibuilds/github:0.13
steps:
- checkout
- attach_workspace:
at: ./
- run:
name: 'Publish Release on GitHub'
command: |
VERSION=$(jq -r .version ./packages/discovery-provider/.version.json)
CHANGELOG=$(git log --format=%B -n 1)
ghr -t ${GHI_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -b "${CHANGELOG}" -soft protocol-v${VERSION} ./
10 changes: 8 additions & 2 deletions .circleci/src/workflows/root.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
jobs:
- root-publish-github-release:
- root-publish-github-release-client:
context: Audius Client
filters:
branches:
only: /(^release.*)$/
only: /(^release-client-v.*)$/
- root-publish-github-release-protocol:
# Audius Client context contains the GHI token
context: Audius Client
filters:
branches:
only: /(^release-v.*)$/
11 changes: 5 additions & 6 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,14 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
cache-dependency-path: |
package-lock.json
packages/*/patches/*.patch

- uses: actions/cache@v3
with:
path: '~/.npm'
key: ${{ runner.os }}-${{ matrix.node-version }}-npmcache-${{ hashFiles('package-lock.json') }}-${{ hashFiles('packages/*/patches/*.patch') }}
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('packages/*/patches/*.patch') }}

- name: Install Dependencies
run: npm i

- name: Update .npmrc
run: |
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
"editor.defaultFormatter": "ms-python.black-formatter"
},
"editor.find.addExtraSpaceOnTop": false,
"eslint.workingDirectories": [{ "pattern": "./packages/*/" }],
"eslint.workingDirectories": [
{ "pattern": "./packages/*/" },
{ "pattern": "./protocol-dashboard" }
],
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
Expand Down
8 changes: 4 additions & 4 deletions dev-tools/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,22 @@ debian | ubuntu)
;;
*)
if ! command -v docker &>/dev/null; then
echo "Docker is not installed. Please install docker and try again."
echo "Docker is not installed. Please install docker and try again." >&2
exit 1
fi

if ! command -v python3 &>/dev/null; then
echo "Python3 is not installed. Please install python3 and try again."
echo "Python3 is not installed. Please install python3 and try again." >&2
exit 1
fi

if ! command -v pip3 &>/dev/null; then
echo "pip3 is not installed. Please install pip3 and try again."
echo "pip3 is not installed. Please install pip3 and try again." >&2
exit 1
fi

if ! docker compose version &>/dev/null; then
echo "Docker compose v2 is not installed. Please install docker compose v2 and try again."
echo "Docker compose v2 is not installed. Please install docker compose v2 and try again." >&2
exit 1
fi
;;
Expand Down
17 changes: 14 additions & 3 deletions docs/docs/distributors/specification/metadata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,20 @@ The `coverArtFile` maps to two DDEX Fields

#### releaseDate

1. `/DealList/ReleaseDeal/Deal/ValidityPeriod/StartDate`
2. `/ReleaseList/Release/ReleaseDetailsByTerritory[TerritoryCode="Worldwide"]/ReleaseDate`
3. `/ReleaseList/Release/GlobalOriginalReleaseDate`
:::note

The resource will not be published on the Audius platform until the following condition is met:

`current date ≥ max(releaseDate, validity start date from the corresponding deal)`

However the date displayed in the Audius interface will be this `releaseDate` value (determined by
the hierarchy below).

:::

1. `/ReleaseList/Release/ReleaseDetailsByTerritory[TerritoryCode="Worldwide"]/ReleaseDate`
2. `/ReleaseList/Release/GlobalOriginalReleaseDate`
3. `/DealList/ReleaseDeal/Deal/ValidityPeriod/StartDate`

#### userId

Expand Down
2 changes: 1 addition & 1 deletion mediorum/.version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "0.6.84",
"version": "0.6.86",
"service": "content-node"
}
5 changes: 3 additions & 2 deletions monitoring/healthz/src/pages/Nodes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ function HealthRow({ isContent, sp, isStaging }: { isContent: boolean; sp: SP, i
const chainDescription: string =
health.chain_health?.entries['node-health'].description

const StorageProgressBar = ({ progress }: { progress: number }) => {
const progressPercent = (progress / Math.max(progress, MAX_STORAGE_SIZE)) * 100
const StorageProgressBar = ({ progress, max }: { progress: number, max: number }) => {
const progressPercent = (progress / Math.max(progress, max)) * 100

return (
<div className="min-w-[200px] relative">
Expand Down Expand Up @@ -281,6 +281,7 @@ function HealthRow({ isContent, sp, isStaging }: { isContent: boolean; sp: SP, i
>
<StorageProgressBar
progress={totalMediorumUsed === '?' ? 0 : totalMediorumUsed}
max={totalMediorumSize}
/>
<div className="mt-3 flex">
{getStorageBackendIcon(health.blobStorePrefix)} <span className="w-[10px]" /> {totalMediorumUsed} / {totalMediorumUsed === '?' ? '?' : Math.max(totalMediorumSize, totalMediorumUsed)} GB
Expand Down
Loading

0 comments on commit b30997e

Please sign in to comment.