Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a678f14
chore/linter (#467)
parkan May 14, 2025
024b41d
Feat/allow small pieces (#479)
parkan Jun 10, 2025
f760a11
Fix deprecated fields in .goreleaser.yaml before v0.6.0-RC1 release
Jun 11, 2025
8dda2f8
Remove large SQL files from version control and add to .gitignore
Jun 11, 2025
e9942a1
implement Connect to / Add Storage
anjor Jun 14, 2025
ca51c8e
Add auto-deal fields to Preparation model and integrate onboard command
anjor Jun 14, 2025
a676131
Update handlers for auto-deal integration
anjor Jun 14, 2025
13dfdfd
Update dataset worker to trigger auto-deals on job completion
anjor Jun 14, 2025
1e1f66a
Add documentation and demo materials
anjor Jun 14, 2025
b25e18b
Update README with comprehensive auto-deal documentation
anjor Jun 14, 2025
7703ac4
Add missing auto-deal CLI flags to prep create command
anjor Jun 14, 2025
ae148e3
Fix auto-deal service interface compatibility
anjor Jun 14, 2025
7d1decb
Add version.json file for Docker build
anjor Jun 14, 2025
3b434aa
deal template
anjor Jun 16, 2025
456e606
docs
anjor Jun 16, 2025
06daa7a
gofmt
anjor Jun 16, 2025
7bfdd9e
Update generated code and documentation for deal template functionality
anjor Jun 16, 2025
bcc4c05
Fix: restore version.json to v0.6.0-RC2 [skip ci] (#516)
Sankara-Jefferson Jun 16, 2025
5a14e9a
chore: bump version to v0.6.0-RC3 (#519)
Sankara-Jefferson Jun 18, 2025
2ba6325
Wallet create and migration (#517)
Sankara-Jefferson Jun 20, 2025
1d03d89
Merge branch 'main' into feature/auto-prep-deal-scheduling-reopened
Sankara-Jefferson Jun 20, 2025
855e9ba
fixes based on feedback
anjor Jun 20, 2025
85912f8
more fixes
anjor Jun 20, 2025
fbd10ba
go fmt
anjor Jun 20, 2025
780349e
Update generated documentation and client code for DealConfig struct
anjor Jun 20, 2025
364b85b
Fix test failures after DealConfig refactoring
anjor Jun 20, 2025
832c321
Add DB migration for deal_templates table
Jun 24, 2025
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
9 changes: 7 additions & 2 deletions .github/actions/go-check-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ runs:
restore-keys: |
${{ matrix.os }}-golang-${{ matrix.go }}-

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'

- name: Lint
uses: golangci/golangci-lint-action@v3
uses: golangci/golangci-lint-action@v7
with:
version: v1.55.2
version: v2.1.5
args: --timeout=10m
4 changes: 2 additions & 2 deletions .github/workflows/auto-generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
ref: ${{ github.head_ref }}

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '1.20.x'
go-version-file: 'go.mod'

- name: Run go generate
run: |
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# File managed by web3-bot. DO NOT EDIT.
# See https://github.com/protocol/.github/ for details.

name: Automerge
on: [ pull_request ]

jobs:
automerge:
uses: protocol/.github/.github/workflows/automerge.yml@master
with:
job: 'automerge'
2 changes: 1 addition & 1 deletion .github/workflows/go-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ concurrency:

jobs:
go-check:
uses: ipdxco/unified-github-workflows/.github/workflows/go-check.yml@v1.0.17
uses: ipdxco/unified-github-workflows/.github/workflows/go-check.yml@v1.0.22
2 changes: 1 addition & 1 deletion .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ concurrency:

jobs:
go-test:
uses: ipdxco/unified-github-workflows/.github/workflows/go-test.yml@v1.0
uses: ipdxco/unified-github-workflows/.github/workflows/go-test.yml@v1.0.22
4 changes: 2 additions & 2 deletions .github/workflows/release-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: "1.20.x"
go-version-file: 'go.mod'
- name: Release Binaries
uses: goreleaser/goreleaser-action@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ concurrency:

jobs:
release-check:
uses: ipdxco/unified-github-workflows/.github/workflows/release-check.yml@v0.0
uses: ipdxco/unified-github-workflows/.github/workflows/release-check.yml@v1.0.22
2 changes: 1 addition & 1 deletion .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ concurrency:

jobs:
releaser:
uses: ipdxco/unified-github-workflows/.github/workflows/releaser.yml@v1.0
uses: ipdxco/unified-github-workflows/.github/workflows/releaser.yml@v1.0.22
2 changes: 1 addition & 1 deletion .github/workflows/tagpush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ concurrency:

jobs:
releaser:
uses: ipdxco/unified-github-workflows/.github/workflows/tagpush.yml@v0.0
uses: ipdxco/unified-github-workflows/.github/workflows/tagpush.yml@v1.0.22
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
/baga*
singularity.db*

# Devcontainer
.devcontainer/

node_modules
/.pnp
Expand Down Expand Up @@ -51,3 +53,6 @@ yarn-error.log*
dist/

/test.db*
dump_extracted.sql
dump_postgres_reordered_data_only.sql
dump_postgres_reordered_fixed.sql
163 changes: 87 additions & 76 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,76 +1,87 @@
run:
tests: false
skip-dirs:
- replication/internal
- cmd/embed
- docs
- dashboard/model2ts
- handler/datasource/generate
- handler/storage/gen
skip-files:
- cmd/testutil.go

linters:
enable-all: true
disable:
- typecheck
- interfacer
- structcheck
- golint
- ifshort
- scopelint
- varcheck
- varnamelen
- maligned
- deadcode
- structcheck
- gci
- goimports
- gofumpt
- nolintlint
- ireturn
- nosnakecase
- nlreturn
- godox
- gomoddirectives
- rowserrcheck
- sqlclosecheck
- wastedassign
- gocognit
- wsl
- musttag
- exhaustivestruct
- cyclop
- gomnd
- gochecknoglobals
- funlen
- gocyclo
- exhaustruct
- wrapcheck
- nestif
- containedctx
- maintidx
- nonamedreturns
- nilnil
- prealloc
- gochecknoinits
- dupl
- forbidigo
- godot
- depguard
- nakedret
- tagalign
- lll
- dupword
- interfacebloat
- goconst

linters-settings:
errcheck:
exclude-functions:
- (github.com/libp2p/go-libp2p/network.MuxedStream).SetDeadline
- (github.com/data-preservation-programs/singularity/service.DatasetWorker).cleanup
revive:
rules:
- name: var-naming
disabled: true
version: "2"
run:
tests: false
linters:
default: all
disable:
- containedctx
- cyclop
- depguard
- dupl
- dupword
- exhaustruct
- forbidigo
- funlen
- gochecknoglobals
- gochecknoinits
- gocognit
- goconst
- gocyclo
- godot
- godox
- gomoddirectives
- interfacebloat
- ireturn
- lll
- maintidx
- mnd
- musttag
- nakedret
- nestif
- nilnil
- nlreturn
- nolintlint
- nonamedreturns
- prealloc
- rowserrcheck
- sqlclosecheck
- tagalign
- varnamelen
- wastedassign
- wrapcheck
- wsl
- contextcheck
- forcetypeassert
- funcorder
- exhaustive
- intrange
settings:
gosec:
excludes:
- G115 # we do a lot of uint64 conversions unfortunately
errcheck:
exclude-functions:
- path/filepath.Walk
- (github.com/libp2p/go-libp2p/network.MuxedStream).SetDeadline
- (github.com/data-preservation-programs/singularity/service.DatasetWorker).cleanup
revive:
rules:
- name: var-naming
disabled: true
recvcheck:
disable-builtin: true
exclusions:
- "*.Value"
- "*.String"
- "*.MarshalBinary"
- "*.MarshalJSON"
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
6 changes: 4 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#file: noinspection YAMLSchemaValidation
version: 2

builds:
Expand Down Expand Up @@ -32,17 +31,20 @@ archives:

release:
mode: keep-existing

changelog:
disable: true

checksum:
disable: false

nfpms:
- formats:
- deb
- rpm
- archlinux
vendor: Data Programs
homepage: https://github.com/data-preservation-programs/singularity
maintainer: Xinan Xu <xinan.xu@protocol.ai>
maintainer: Jefferson Sankara <jefferson@fil.org>
description: The new pure-go implementation of Singularity provides everything you need to onboard your, or your client's data to Filecoin network.
license: MIT + Apache 2.0
Loading
Loading