Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,20 @@ npx @dcl/opscli queue-ab-conversion \
--pointer="110,10" \
--cid "110,10" \
--token <ACCESS_TOKEN> \
[--platform webgl] \
[--platform mac] \
[--platform windows] \
[--ab-server https://ab-admin.decentraland.org] \
[--content-server https://peer.decentraland.org/content]
```
> If no platform is specified, it runs for all platforms. Also, more than one can be specified at a time.
> **Note:** WebGL has been decommissioned and is no longer a valid platform target. Valid platforms are `windows` and `mac`.
> If no platform is specified, it runs for all platforms (`windows`, `mac`). More than one can be specified at a time.

> For dev, use `--ab-server https://ab-admin.decentraland.zone`.

### Schedule asset bundle conversion of all worlds
```
npx @dcl/opscli queue-ab-conversion-snapshot \
--snapshot worlds \
[--platform webgl] \
[--platform mac] \
[--platform windows] \
--token <ACCESS_TOKEN> \
Expand All @@ -63,7 +62,6 @@ npx @dcl/opscli queue-ab-conversion-snapshot \
```
npx @dcl/opscli queue-ab-conversion-snapshot \
--snapshot worlds \
[--platform webgl] \
[--platform mac] \
[--platform windows] \
--token <ACCESS_TOKEN> \
Expand All @@ -76,7 +74,6 @@ npx @dcl/opscli queue-ab-conversion-snapshot \
```
npx @dcl/opscli queue-ab-conversion-about \
--token <ACCESS_TOKEN> \
[--platform webgl] \
[--platform mac] \
[--platform windows] \
--about-url https://sdk-team-cdn.decentraland.org/ipfs/goerli-plaza-main/about \
Expand Down
8 changes: 0 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,9 @@ <h2>Enter Coordinates:</h2>

for (const { entityId, pointers } of entityIdsToConvert) {
appendLog(container, 'Pointers\n' + pointers.join(' ; '))
const result = await fetch(`${abServer}/manifest/${entityId}.json?timestamp=${new Date().getTime()}`, { cache: "no-store" })
const resultWindows = await fetch(`${abServer}/manifest/${entityId}_windows.json?timestamp=${new Date().getTime()}`, { cache: "no-store" })
const resultMac = await fetch(`${abServer}/manifest/${entityId}_mac.json?timestamp=${new Date().getTime()}`, { cache: "no-store" })

appendLog(container, 'WEBGL')
await check(entityId, pointers, result)

appendLog(container, 'WINDOWS')
await check(entityId, pointers, resultWindows)

Expand All @@ -187,13 +183,9 @@ <h2>Enter Coordinates:</h2>
const entity = await getWorldsActiveEntity(world, worldsServer)
entityId = entity.configurations.scenesUrn[0].split(':')[3].split('?')[0]
appendLog(container, 'World ' + world)
const result = await fetch(`${abServer}/manifest/${entityId}.json?timestamp=${new Date().getTime()}`, { cache: "no-store" })
const resultWindows = await fetch(`${abServer}/manifest/${entityId}_windows.json?timestamp=${new Date().getTime()}`, { cache: "no-store" })
const resultMac = await fetch(`${abServer}/manifest/${entityId}_mac.json?timestamp=${new Date().getTime()}`, { cache: "no-store" })

appendLog(container, 'WEBGL')
await check(entityId, [world], result)

appendLog(container, 'WINDOWS')
await check(entityId, [world], resultWindows)

Expand Down
4 changes: 0 additions & 4 deletions src/commands/check-ab-conversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,9 @@ export default async () => {
}

for (const { entityId, pointers } of entityIdsToConvert) {
const result = await fetch(`${abServer}/manifest/${entityId}.json`)
const resultWindows = await fetch(`${abServer}/manifest/${entityId}_windows.json`)
const resultMac = await fetch(`${abServer}/manifest/${entityId}_mac.json`)

console.log('WEBGL')
await check(entityId, pointers, result)

console.log('WINDOWS')
await check(entityId, pointers, resultWindows)

Expand Down
2 changes: 1 addition & 1 deletion src/commands/pointer-consistency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async function checkAssetBundleStatus(
console.log(` Global status: ${statusLabel(entry.status)}`)

console.log(' Platform status:')
const platforms = ['windows', 'mac', 'webgl']
const platforms = ['windows', 'mac']
for (const platform of platforms) {
const assetStatus = entry.bundles?.assets?.[platform] || 'unknown'
const version = entry.versions?.assets?.[platform]
Expand Down
7 changes: 6 additions & 1 deletion src/commands/queue-ab-conversion-about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ export default async () => {
const shouldPrioritize = !!args['--prioritize']

assert(!!token, '--token is missing')
platforms.forEach((platform) => assert(Object.values(Platform).includes(platform), `Invalid platform: ${platform}`))
platforms.forEach((platform) =>
assert(
Object.values(Platform).includes(platform),
`Invalid platform: ${platform}. Valid platforms: ${Object.values(Platform).join(', ')}`
)
)

console.log(`> Parameters:`)
console.log(` Platform(s): ${platforms.join(',')}`)
Expand Down
7 changes: 6 additions & 1 deletion src/commands/queue-ab-conversion-snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ export default async () => {

assert(!!snapshot, '--snapshot is missing')
assert(!!token, '--token is missing')
platforms.forEach((platform) => assert(Object.values(Platform).includes(platform), `Invalid platform: ${platform}`))
platforms.forEach((platform) =>
assert(
Object.values(Platform).includes(platform),
`Invalid platform: ${platform}. Valid platforms: ${Object.values(Platform).join(', ')}`
)
)

console.log(`> Parameters:`)
const contentUrl = (args['--content-server'] || 'https://peer.decentraland.org/content').replace(/\/$/, '')
Expand Down
7 changes: 6 additions & 1 deletion src/commands/queue-ab-conversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ export default async () => {

assert(!!token, '--token is missing')
assert(pointers.length > 0 || cids.length > 0, '--pointer or --cid are required')
platforms.forEach((platform) => assert(Object.values(Platform).includes(platform), `Invalid platform: ${platform}`))
platforms.forEach((platform) =>
assert(
Object.values(Platform).includes(platform),
`Invalid platform: ${platform}. Valid platforms: ${Object.values(Platform).join(', ')}`
)
)

console.log(`> Parameters:`)
pointers.length && console.log(` Pointers: ${pointers.join(',')}`)
Expand Down
2 changes: 1 addition & 1 deletion src/commands/world-ab-status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export default async function () {
console.log(` Entity ID match: ${idMatch ? '✅' : '🚨 STALE — registry has different entity'}`)
console.log(` Status: ${statusLabel(registryEntry.status)}`)

const platforms = ['windows', 'mac', 'webgl']
const platforms = ['windows', 'mac']
console.log(' Versions:')
for (const platform of platforms) {
const version = registryEntry.versions?.assets?.[platform]
Expand Down
1 change: 0 additions & 1 deletion src/helpers/asset-bundles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { CliError } from '../bin'
export const productionAbAdmin = 'https://ab-admin.decentraland.org'

export enum Platform {
WEBGL = 'webgl',
WINDOWS = 'windows',
MAC = 'mac'
}
Expand Down
Loading