Skip to content

Commit 4abaefb

Browse files
authored
Allow unknown remote object size (#431)
This PR handles the edge case when remote data source report object size as unknown (-1) * The size will not be part of the condition to determine if this file already exists in the database * Once prepared, the size of the file will be updated to the correct size Caveats * Since the size is unknown, it's possible that the files within a job may overflow the sector size * A warning message is logged so the user is aware
1 parent 878ee99 commit 4abaefb

File tree

23 files changed

+165
-82
lines changed

23 files changed

+165
-82
lines changed

.github/actions/go-check-setup/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ runs:
44
using: "composite"
55
steps:
66
- name: Setup Golang caches
7-
uses: actions/cache@v3
7+
uses: actions/cache@v4
88
with:
99
path: |
1010
~/.cache/go-build
1111
~/go/pkg/mod
1212
key: ${{ matrix.os }}-golang-${{ matrix.go }}-${{ hashFiles('**/go.sum') }}
1313
restore-keys: |
1414
${{ matrix.os }}-golang-${{ matrix.go }}-
15+
16+
- name: Lint
17+
uses: golangci/golangci-lint-action@v3
18+
with:
19+
version: v1.55.2
20+
args: --timeout=10m

.github/actions/go-test-setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ runs:
44
using: "composite"
55
steps:
66
- name: Setup Golang caches
7-
uses: actions/cache@v3
7+
uses: actions/cache@v4
88
with:
99
path: |
1010
~/.cache/go-build

.github/workflows/container-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Get Ref from releaser
2424
id: releaser
2525
if: github.event_name == 'workflow_run'
26-
uses: pl-strflt/uci/.github/actions/[email protected]
26+
uses: ipdxco/unified-github-workflows/.github/actions/[email protected]
2727
with:
2828
artifacts-url: ${{ github.event.workflow_run.artifacts_url }}
2929
publish:
@@ -64,4 +64,4 @@ jobs:
6464
push: ${{ github.event_name != 'pull_request' }}
6565
tags: ${{ steps.meta.outputs.tags }}
6666
labels: ${{ steps.meta.outputs.labels }}
67-
platforms: linux/amd64,linux/arm64
67+
platforms: linux/amd64,linux/arm64

.github/workflows/go-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ concurrency:
1515

1616
jobs:
1717
go-check:
18-
uses: pl-strflt/uci/.github/workflows/[email protected]
18+
uses: ipdxco/unified-github-workflows/.github/workflows/[email protected]

.github/workflows/go-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ concurrency:
1515

1616
jobs:
1717
go-test:
18-
uses: pl-strflt/uci/.github/workflows/[email protected]
18+
uses: ipdxco/unified-github-workflows/.github/workflows/[email protected]

.github/workflows/go.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/release-binaries.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
workflow_run:
77
workflows: [Releaser]
88
types: [completed]
9-
pull_request:
10-
branches: [ "main" ]
119
jobs:
1210
bin-releaser:
1311
name: Release Binaries

.github/workflows/release-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ concurrency:
1616

1717
jobs:
1818
release-check:
19-
uses: pl-strflt/uci/.github/workflows/[email protected]
19+
uses: ipdxco/unified-github-workflows/.github/workflows/[email protected]

.github/workflows/releaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ concurrency:
1414

1515
jobs:
1616
releaser:
17-
uses: pl-strflt/uci/.github/workflows/[email protected]
17+
uses: ipdxco/unified-github-workflows/.github/workflows/[email protected]

.github/workflows/tagpush.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ concurrency:
1515

1616
jobs:
1717
releaser:
18-
uses: pl-strflt/uci/.github/workflows/[email protected]
18+
uses: ipdxco/unified-github-workflows/.github/workflows/[email protected]

0 commit comments

Comments
 (0)