Skip to content

Commit 3de0148

Browse files
authored
Merge pull request #5016 from sourcenetwork/release/1.0.0
Release v1.0.0
2 parents 668b59d + 6910351 commit 3de0148

1,142 files changed

Lines changed: 67305 additions & 17926 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Copyright 2026 Democratized Data Foundation
2+
#
3+
# Use of this software is governed by the Business Source License
4+
# included in the file licenses/BSL.txt.
5+
#
6+
# As of the Change Date specified in that file, in accordance with
7+
# the Business Source License, use of this software will be governed
8+
# by the Apache License, Version 2.0, included in the file
9+
# licenses/APL.txt.
10+
11+
name: Build and Test C Shared Library (Linux)
12+
13+
on:
14+
pull_request:
15+
branches:
16+
- master
17+
- develop
18+
19+
push:
20+
tags:
21+
- 'v[0-9]+.[0-9]+.[0-9]+'
22+
branches:
23+
- master
24+
- develop
25+
26+
defaults:
27+
run:
28+
shell: bash
29+
30+
jobs:
31+
build-c-shared-linux:
32+
name: Build and test Linux C shared library
33+
34+
runs-on: ubuntu-latest
35+
36+
steps:
37+
- name: Checkout code
38+
uses: actions/checkout@v6
39+
40+
- name: Setup Go environment
41+
uses: actions/setup-go@v6
42+
with:
43+
go-version-file: 'go.mod'
44+
check-latest: true
45+
cache: false
46+
47+
- name: Build Go modules
48+
run: make deps:modules
49+
50+
- name: Build Linux C shared library
51+
run: |
52+
chmod +x tools/scripts/build-c-shared-linux.sh
53+
make build-c-shared-linux
54+
55+
- name: Compile C test program
56+
run: gcc -o c_test tests/c/basic_test.c -I./build -L./build -ldefradb
57+
58+
- name: Run C test program
59+
run: LD_LIBRARY_PATH=./build ./c_test

.github/workflows/combine-bot-prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
inputs:
1818

1919
branchPrefix:
20-
description: 'Branch prefix to find combinable PRs based on, eg: dependabot/npm_and_yarn/playground'
20+
description: 'Branch prefix to find combinable PRs based on, eg: dependabot/npm_and_yarn/explorer'
2121
required: true
2222
default: 'dependabot'
2323

.github/workflows/docker-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ jobs:
6969
file: tools/defradb.containerfile
7070
platforms: linux/amd64,linux/arm64
7171
push: true
72+
build-args: |
73+
VERSION=v${{ github.event.inputs.tag }}
7274
tags: |
7375
${{ github.repository_owner }}/defradb:latest
7476
${{ github.repository_owner }}/defradb:${{ github.event.inputs.tag }}

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ jobs:
200200
file: tools/defradb.containerfile
201201
platforms: linux/amd64,linux/arm64
202202
push: true
203+
build-args: |
204+
VERSION=v${{ github.event.inputs.tag }}
203205
tags: |
204206
${{ github.repository_owner }}/defradb:latest
205207
${{ github.repository_owner }}/defradb:${{ github.event.inputs.tag }}

.github/workflows/test-coverage.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,35 @@ jobs:
359359
coverage-artifact-name: "coverage_secondary_index"
360360
coverage-path: coverage.txt
361361

362+
# This job runs tests with document signing automatically enabled,
363+
# to ensure every feature behaves correctly when all blocks are signed.
364+
test-coverage-signed-docs:
365+
name: Test coverage signed docs job
366+
367+
runs-on: runs-on=${{ github.run_id }}-${{ github.run_attempt }}-${{ strategy.job-index }}/\
368+
spot=pco/cpu=16+32/family=c6*+c7*/disk=large/extras=s3-cache
369+
370+
env:
371+
DEFRA_MULTIPLIERS: signed-docs
372+
373+
steps:
374+
- name: Enable RunsOn action
375+
uses: runs-on/action@v2
376+
with:
377+
metrics: cpu,network,memory,disk,io
378+
379+
- name: Checkout code into the directory
380+
uses: actions/checkout@v6
381+
382+
- name: Setup defradb
383+
uses: ./.github/composites/setup-defradb
384+
385+
- name: Test coverage & save coverage report in an artifact
386+
uses: ./.github/composites/test-coverage-with-artifact
387+
with:
388+
coverage-artifact-name: "coverage_signed_docs"
389+
coverage-path: coverage.txt
390+
362391
# This job tests the leveldb datastore.
363392
test-coverage-leveldb:
364393
name: Test coverage leveldb job
@@ -401,6 +430,7 @@ jobs:
401430
- test-coverage-telemetry # 1 test(s)
402431
- test-coverage-js # 1 test(s)
403432
- test-coverage-secondary-index # 1 test(s)
433+
- test-coverage-signed-docs # 1 test(s)
404434
- test-coverage-leveldb # 1 test(s)
405435

406436
# Important to know:
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Copyright 2026 Democratized Data Foundation
2+
#
3+
# Use of this software is governed by the Business Source License
4+
# included in the file licenses/BSL.txt.
5+
#
6+
# As of the Change Date specified in that file, in accordance with
7+
# the Business Source License, use of this software will be governed
8+
# by the Apache License, Version 2.0, included in the file
9+
# licenses/APL.txt.
10+
name: Test Debian Package (Linux)
11+
on:
12+
pull_request:
13+
branches:
14+
- master
15+
- develop
16+
push:
17+
tags:
18+
- 'v*.*.*'
19+
branches:
20+
- master
21+
- develop
22+
defaults:
23+
run:
24+
shell: bash
25+
jobs:
26+
test-deb-package:
27+
name: Build, install, and test Debian package
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
32+
with:
33+
persist-credentials: false
34+
- name: Setup Go environment
35+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
36+
with:
37+
go-version-file: 'go.mod'
38+
check-latest: true
39+
cache: false
40+
- name: Install build dependencies
41+
run: sudo apt-get install -y fakeroot
42+
- name: Build Go modules
43+
run: make deps:modules
44+
- name: Build Debian package
45+
run: |
46+
chmod +x tools/scripts/build-c-shared-linux.sh
47+
make build-c-shared-linux:deb
48+
- name: Install Debian package
49+
run: sudo dpkg -i build/libdefradb_*.deb
50+
- name: Compile C test program
51+
run: gcc -o c_test tests/c/basic_test.c -ldefradb
52+
- name: Run C test program
53+
run: ./c_test

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,6 @@ crash.log
7070

7171
# Ignore .env files containing sensitive information.
7272
.env
73+
74+
# Ignore direnv environment files (developer-local).
75+
.envrc

.goreleaser.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2
33
before:
44
hooks:
55
- go mod tidy
6-
- make deps:playground
6+
- make deps:explorer
77

88
builds:
99
# Minimal build with no extras
@@ -16,11 +16,11 @@ builds:
1616
goarch:
1717
- amd64
1818
- arm64
19-
# Default build with playground and telemetry
19+
# Default build with explorer and telemetry
2020
- id: "defradb"
2121
main: ./cmd/defradb
2222
flags:
23-
- -tags=playground,telemetry
23+
- -tags=explorer,telemetry
2424
goos:
2525
- linux
2626
- windows

0 commit comments

Comments
 (0)