-
Notifications
You must be signed in to change notification settings - Fork 167
refactor: retroactively eslint other cron files #1993
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
Open
gobengo
wants to merge
112
commits into
nftstorage:main
Choose a base branch
from
gobengo:issues/1943-biglint
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
112 commits
Select commit
Hold shift + click to select a range
45e8abf
add .github/workflows/cron-nft-ttr
gobengo e4d0d22
nft-ttr uses yargs to accept --url flag defaulting to nft.storage
gobengo 9c968d9
nft-ttr downloads file to use as example image when measuring
gobengo 82f97a5
nft-ttr downloads a source file to use for rest of test
gobengo e6cfff9
measureNftTimeToRetrievability.js logs duration
gobengo 8bff205
measureNftTimeToRetrievability.js pushes metrics to metricsGateway
gobengo 5d484b1
measureNftTimeToRetrievability.spec.js test doesnt hit network, asser…
gobengo a24f5aa
Add github workflow to typecheck/test cron
gobengo d84e70b
lint cron
gobengo 35a4913
cron typechecks
gobengo b986dab
github workflow for cron check does npm-install in cron dir
gobengo 4f3051a
try new workflow cron check install-command
gobengo 3d319c8
dont use gozala typecheck action
gobengo b425e50
gh cron log
gobengo f2fc920
cron debug
gobengo a1d3ede
client has prepack script
gobengo 1b340e3
cron debug
gobengo 2a575f3
cron debug
gobengo 08f1f62
cron rm mime-types
gobengo 854a282
cron debug
gobengo 03fbab9
cron debug
gobengo 6f1cd2c
measureNftTimeToRetrievability can be tested with >10Mb files
gobengo a40a696
move online test to nft-ttr.spec.js
gobengo d4d4cd0
update cron-nft-ttr.yml
gobengo 176ebea
nft-ttr support retrieving from multiple gateways
gobengo 8a343f5
fix cron typecheck
gobengo 6515072
.github cron-nft-ttr invokes using multiple gateways
gobengo 9e686d7
github cron-nft-ttr passes secrets.PUSHGATEWAY_BASIC_AUTH
gobengo 53b43b7
measureNftTimeToRetrievability.js metrics pushgateway works locally w…
gobengo efa794b
rm default metricsPushGateway and provide it in gh action
gobengo ff1d696
yarn.lock
gobengo b7d958b
ghwf cron-nft-ttr invokes with camelCase flag not kebab-case
gobengo f7f9755
ci(cron): action doesnt explicitly check for NFT_STORAGE_API_KEY env
gobengo c27d229
rename BYTES_10_MB -> defaultTestMinImageSizeBytes
gobengo 74b91ce
add descriptive variable name isProcessEntrypoint in bin/nft-ttr.js
gobengo 1a5d930
rm unused UrlIamages
gobengo b4e2528
rename fn TestImages -> createTestImages
gobengo 9ddccc6
createTestImages uses RandomImageBlob
gobengo 501b79d
packages/cron uses @typescript-eslint/recommended and naming-convention
gobengo 398090a
measureNftTimeToRetrievability.js merges config & { secrets } into op…
gobengo 6ee4020
add Milliseconds.subtract static
gobengo ff5d3c4
measureNftTimeToRetrievability checks success via response.ok and not…
gobengo 4267950
cron eslintConfig rm unneeded .excludedFiles
gobengo 4a27271
dont eslint-disable cron jobs/dagcargo , disable via eslintConfig ove…
gobengo a1fd2a3
start integrating prom-client
gobengo f9ef640
refactor metrics
gobengo 88cf750
progress on metrics
gobengo 0ee9e6c
measureNftTimeToRetrievability test works on airplane with no wifi
gobengo ee2c3ba
nft-ttr uses httpImageFetcher
gobengo 7d543fa
measureNftTimeToRetrievability.spec asserts that pushRetrievalMetrics…
gobengo 18c9fd6
cleanup cron nftttr
gobengo 4a643a0
cron uses sade instead of yargs
gobengo 280045a
cron tests work offline by stubbing network calls
gobengo f2450cc
cron package uses ava instead of jest for testing
gobengo 4f584aa
measureNftTimeToRetrievability and nft-ttr return AsyncIterable and t…
gobengo 40a19e6
cron eslint uses plugin:prettier/recommended
gobengo 7484929
cron eslint add plugin:@typescript-eslint/recommended-requiring-type-…
gobengo 6642e35
ci: cron.yml prepares client before linting cron
gobengo 82b07a4
remove unused code pushing to prom pushgateway via fetch (and using w…
gobengo d393637
remove unused byteLength field from createRetrievalDurationSecondsMetric
gobengo 9463cc8
cron test uses c8 to report code coverage
gobengo 4b37443
cron remove unused safe-env-vars dep
gobengo bb6bc88
cron remove unused dep debug
gobengo 49d89e8
cron eslint remove unused not-from-recommended rules
gobengo 0e46d96
cron eslint remove unused eslintIgnore values
gobengo c25529b
cron remove unused eslint-disable file comments
gobengo a8528ae
clean createMeasureSecretsFromEnv based on review
gobengo 726a7a4
nft-ttr error throws with cause instead of console.warn
gobengo 1f5e764
fix: preserve all backup_urls for chunked uploads (#1940)
yusefnapora 4822448
chore: refactor service configuration loading (#1914)
yusefnapora 86986c6
feat: Adding HasDeleteRestriction user_tag (#1952)
jsdevel f5072e2
chore(main): release api 2.24.2 (#1930)
github-actions[bot] 14d8ad2
feat: DB schema and API for user_tag_proposal. (#1410) (#1402)
jsdevel 486fdcd
fix: config loading required vars (#1955)
hugomrdias 5b5f341
feat: Adding admin ability to search by github_id (#1960)
jsdevel 2a03744
chore(main): release api 2.25.0 (#1956)
github-actions[bot] 5c2c7f5
feat: optimize metrics query (#1906)
johnathonroach fec755c
chore(main): release api 2.26.0 (#1966)
github-actions[bot] 7035dae
feat: cron release workflow (#1932)
flea89 2a5592a
chore(main): release cron 3.1.0 (#1968)
github-actions[bot] 94e43e3
feat: add NFTUp CTA to stats page (#1971)
johnathonroach 48c4330
chore(main): release website 1.52.0 (#1975)
github-actions[bot] e7e5db5
fix: Adding user_tag_proposal schema to reset.sql for local dev (#1977)
jsdevel c2256b1
docs: add store from URL example (#1979)
de7ed04
Revert "nft-ttr error throws with cause instead of console.warn"
gobengo 5e5ee27
nft-ttr rename main -> cli
gobengo d42d952
nft-ttr tests pass without process.env needing NFT_STORAGE_API_KEY
gobengo 440e07e
cron: better typechecking around RetrievalDurationMetric value
gobengo ab441c9
test createMeasureOptionsFromSade
gobengo 4007e42
test createMeasureSecretsFromEnv
gobengo 2c852e2
rm sadeParseWithoutExit
gobengo 835d77a
get rid of LogFunction
gobengo 14449d8
Merge branch 'main' into issues/1943-measure-ttr
gobengo 511e16c
test cron utils so coverage is green in c8
gobengo d3fff4b
rm --silent from cron-nft-ttr gh wf
gobengo fbfe265
remove unneeded eslint-disable-next-line
gobengo 17f840a
remove commented console.log
gobengo 6836369
Add explanation comment to hasOwnProperty
gobengo 3e62621
cron: remove eslint overrides for src/lib/fetch.js
gobengo 5b9e19b
cron: remove eslint overrides for src/bin/pins-failed.js
gobengo a285c9b
cron: remove eslint overrides for src/jobs/dagcargo.js
gobengo 6fa66a8
cron: remove eslint overrides for src/jobs/metrics.js
gobengo 12f0631
cron: remove eslint overrides for src/jobs/pins.js
gobengo 29a32e8
cron: remove eslint overrides for src/lib/ipfs.js
gobengo 1b442f5
cron: remove eslint overrides for src/lib/pinata.js
gobengo 06d620b
cron: remove remaining eslint overrides
gobengo 7891a3c
Merge branch 'main' into issues/1943-biglint
gobengo 17fbd97
chore(cron): use type assertion instead of type-guard assert in src/j…
gobengo 3dc8fed
chore(cron): use type assertion instead of type-guard assert in src/j…
gobengo f189b35
chore(cron): use type assertion instead of type-guard assert in src/j…
gobengo de7b85f
chore(cron): dont use node:assert in src/lib/ipfs.js
gobengo 8d66a71
chore(cron): use type assertion instead of runtime assert in src/lib/…
gobengo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ async function main() { | |
} | ||
|
||
dotenv.config({ path: path.join(__dirname, '../../../../.env') }) | ||
main() | ||
await main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,4 @@ async function main() { | |
} | ||
|
||
dotenv.config({ path: path.join(__dirname, '../../../../.env') }) | ||
main() | ||
await main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ async function main() { | |
} | ||
|
||
dotenv.config({ path: path.join(__dirname, '../../../../.env') }) | ||
main() | ||
await main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,4 @@ async function main() { | |
} | ||
|
||
dotenv.config({ path: path.join(__dirname, '../../../../.env') }) | ||
main() | ||
await main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,4 @@ async function main() { | |
} | ||
|
||
dotenv.config({ path: path.join(__dirname, '../../../../.env') }) | ||
main() | ||
await main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow, do we need the extra json const here to please the types?