Skip to content

Commit

Permalink
fix: debug acc not work on action
Browse files Browse the repository at this point in the history
  • Loading branch information
lihsai0 committed Jun 20, 2024
1 parent 8c98b6a commit fccf0db
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node_version: ['6', '8', '10', '12', '14', '16', '18', '20']
node_version: ['20']
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -30,5 +30,5 @@ jobs:
QINIU_SECRET_KEY: ${{ secrets.QINIU_SECRET_KEY }}
QINIU_TEST_BUCKET: ${{ secrets.QINIU_TEST_BUCKET }}
QINIU_TEST_DOMAIN: ${{ secrets.QINIU_TEST_DOMAIN }}
- name: Upload coverage reports
uses: codecov/codecov-action@v4
# - name: Upload coverage reports
# uses: codecov/codecov-action@v4
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"check-type": "tsc --noEmit",
"test": "NODE_ENV=test mocha -t 300000 --retries 3",
"test": "NODE_ENV=test mocha -t 300000 ./test/resume_up.test.js --grep 'upload acc normally'",
"cover": "nyc npm run test",
"report": "nyc report --reporter=html",
"lint": "eslint ."
Expand Down
1 change: 1 addition & 0 deletions qiniu/httpc/regionsProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ const QueryRegionsProvider = (function () {
);
}
try {
console.log('debug action: query regions request:\n---headers---\n', respWrapper.resp.headers, '\n---body---\n', respWrapper.data);
const hosts = respWrapper.data.hosts;
return hosts.map(data => getRegionFromQuery(data, {
preferredScheme: this.preferredScheme
Expand Down
2 changes: 2 additions & 0 deletions qiniu/storage/resume.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,8 @@ function putReq (
rsStreamLen,
putExtra
) {
console.log('action debug: request endpoint', upEndpoint);

// make block stream
const blkStream = rsStream.pipe(new BlockStream({
size: putExtra.partSize,
Expand Down
1 change: 0 additions & 1 deletion test/resume_up.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,6 @@ describe('test resume up', function () {
throw new Error('should resume');
}
if (!couldResume && uploaded / partSize > 1) {
console.log('lihs debug:', { couldResume, uploaded });
throw new Error('should not resume');
}
};
Expand Down

0 comments on commit fccf0db

Please sign in to comment.