Commit Graph

1194 Commits

Author SHA1 Message Date
Christien Rioux
0f54f2555d
Merge branch 'macos_setup' into 'main'
ANDROID_SDK being optional in setup_macos.sh

See merge request veilid/veilid!164
2023-09-03 00:26:38 +00:00
Christien Rioux
47173e62a0
Merge branch 'install-readme' into 'main'
Update Fedora installation instructions to use the correct repo link

See merge request veilid/veilid!157
2023-09-03 00:25:30 +00:00
Christien Rioux
b8f62b98b1
Merge branch 'german_translation' into 'main'
Update README-DE.md

See merge request veilid/veilid!162
2023-09-03 00:24:58 +00:00
Christien Rioux
5cdbe96c77
Merge branch 'fine-tune-mr-tests' into 'main'
Refine MR unit tests and contribution guide

See merge request veilid/veilid!161
2023-09-03 00:24:33 +00:00
Christien Rioux
4a1401f75a
Merge branch 'feature/fix-python-update-schema' into 'main'
Add .json file extension to jsonschema output files

See merge request veilid/veilid!167
2023-09-03 00:23:03 +00:00
Christien Rioux
6bb8e74910
Merge branch 'dme26-main-patch-06580' into 'main'
Fixed three typos in alpha documentation.

See merge request veilid/veilid!159
2023-09-03 00:22:45 +00:00
Christien Rioux
7d71b50170
Merge branch 'rustdocTypo2023-09-02' into 'main'
Remove stray by: veilid_core/struct.VeilidAPI.html

See merge request veilid/veilid!166
2023-09-03 00:18:16 +00:00
John Smith
7871dc7405 test fix 2023-09-02 20:15:04 -04:00
Christien Rioux
b3354194e0 repo fix 2023-09-02 18:50:12 -04:00
Christien Rioux
a77f80a8a9 repo fixes 2023-09-02 15:47:19 -04:00
Brandon Vandegrift
1532db70b7 Add .json file extension to jsonschema output files 2023-09-02 14:17:43 -04:00
Christien Rioux
20f55745b0 add descriptions 2023-09-02 12:28:31 -04:00
TC Johnson
783b7cc59c
Fix packaging version parsing
Comments added to Cargo.toml caused faulty parsing of the version
number by package/cargo_version.sh. Adding the -w switch to grep
fixes this by matching on the whole word 'version' and not matching
on words such as 'Bumpversion'.
2023-09-02 10:50:58 -05:00
TC Johnson
2c46a159a3
Version update: v0.1.10 → v0.2.0 2023-09-02 09:45:56 -05:00
TC Johnson
8b2c573298
Add Windows note to CHANGELOG 2023-09-02 09:43:49 -05:00
Christien Rioux
90772728c2 bumpversion fixes 2023-09-02 10:41:59 -04:00
Christien Rioux
a78b57c144 changelog and cargo lock update 2023-09-02 09:51:22 -04:00
Haley Weslin
3cfaff9cbb Remove stray by: veilid_core/struct.VeilidAPI.html
"specified by at startup time" has an extra "by" (wrong grammar)

After changing it, build_docs.sh fixes rustdoc here:
target/doc/veilid_core/struct.VeilidAPI.html
2023-09-02 05:22:51 +00:00
Christien Rioux
1d604477a8
Merge branch 'doc-work' into 'main'
Rustdoc And Android Work

See merge request veilid/veilid!165
2023-09-02 02:19:35 +00:00
Christien Rioux
709ec4543b change visibility of dhcache 2023-09-01 21:18:45 -04:00
Christien Rioux
246056913e doc work 2023-09-01 21:13:05 -04:00
Christien Rioux
c377a59278 fix tests 2023-09-01 18:59:43 -04:00
Christien Rioux
d0e240b545 tests 2023-09-01 17:56:43 -04:00
Christien Rioux
ffcf16711b android fixes 2023-09-01 17:44:42 -04:00
Christien Rioux
f79b13a6d1 android fixes 2023-09-01 15:36:43 -04:00
John Smith
2200825e82 dependency updates 2023-09-01 14:48:27 -04:00
Kai Renken
a938f66ddc make Android SDK optional in setup_macos.sh 2023-08-31 23:35:32 +02:00
Christien Rioux
d68a543800 fix ios 2023-08-29 17:50:25 -05:00
Christien Rioux
c8fd523a91 fix wasm 2023-08-29 15:52:47 -05:00
Christien Rioux
e302b764d0 docs and tests work 2023-08-29 15:15:47 -05:00
Kai Renken
3ef197df5e Initial translation of index and download pages to German 2023-08-29 12:24:53 +02:00
TC Johnson
d0850e95fb
Refine MR unit tests and contribution guide
Changed the name of the unit tests CI job to accuratly reflect
that both AMD64 and ARM64 tests are executed.

Modified the contribution guide to specify that contributors
should work inside their own fork of the project.
2023-08-28 18:58:46 -05:00
Christien Rioux
d3407998f5 doc structure 2023-08-28 10:32:55 -05:00
David Eyers
a6db3fe076 Fixed three typos. (Very minor, as the meaning was clear in any case.) 2023-08-28 05:26:54 +00:00
Christien Rioux
3125c19f02 doc work 2023-08-27 16:39:50 -05:00
Daniel Mulvey
d3e3379e2b update fedora instructions to use correct repo link 2023-08-27 14:31:10 -07:00
TC
2ab51ae3e9 Merge branch 'earthly-caching' into 'main'
Earthly Build Caching in GitLab Container Registry

See merge request veilid/veilid!153
2023-08-27 17:17:29 +00:00
Δ ǀ Ξ ȼ
ab51f68c4d Earthly Build Caching in GitLab Container Registry 2023-08-27 17:17:29 +00:00
Christien Rioux
8c366387eb Merge branch 'fix-set-record-data-size-call' into 'main'
call set_record_data_size with accumulated size

See merge request veilid/veilid!155
2023-08-27 16:07:38 +00:00
Christien Rioux
59dda0febe Merge branch 'api_startup_json_skip_all' into 'main'
api_startup_json: use 'skip_all'

See merge request veilid/veilid!154
2023-08-27 15:58:00 +00:00
Christien Rioux
7985ec6b07 Merge branch 'main' into 'main'
Initial German translation of the guide document and the project readme

See merge request veilid/veilid!156
2023-08-27 15:56:55 +00:00
Moritz Christian Weber
d0910537a0 Delete code_of_conduct-DE.md as there is a better translating reference in the original code of conduct 2023-08-27 06:04:10 +00:00
Moritz Christian Weber
f4b6948548 Fixing broken links 2023-08-26 22:51:32 +00:00
Moritz Christian Weber
df70bad081 Minor adjustment 2023-08-26 22:44:08 +00:00
Moritz Christian Weber
d5be520451 Initial Translation of Code of Conduct 2023-08-26 22:43:00 +00:00
Moritz Christian Weber
31e7952a70 Initial German translation of the project readme file 2023-08-26 21:41:04 +00:00
Moritz Christian Weber
187c86d9f7 Merge branch veilid:main into main 2023-08-26 21:17:41 +00:00
Moritz Christian Weber
d6be7bfda7 Initial German translation of the guide document 2023-08-26 21:17:29 +00:00
Rivka Segan
5dd0a3793b call set_record_data_size with accumulated size
set_subkey corrupts record_data_size in a Record struct by calling
set_record_data_size with a value that depends only on the length of
the new subkey value. This leads to various undesirable outcomes, such
as: applications can write more than MAX_RECORD_DATA_SIZE without
encountering the intended "veilid.error.VeilidAPIErrorGeneric:
label='Generic' message='dht record too large'" error message, and
"panicked at 'attempt to subtract with overflow'" (i.e., an attempt to
set a negative value of a size) if a subkey's new length is less than
a subkey's old length. Typically, record_data_size in a Record struct
will be incorrect if a value was set for more than one subkey. Some
users might want to start over with a table_store that doesn't have
any incorrect record_data_size values.

The issue begins here:
6f71c6a00a/veilid-core/src/storage_manager/record_store.rs (L583-L586)

and is triggered here:
6f71c6a00a/veilid-core/src/storage_manager/record_store.rs (L613-L615)

It should be clear that new_record_data_size is only related to the
subkey that is currently being set. The amount of data in the record,
before set_subkey is called, is ignored. It appears that
new_total_size, not new_record_data_size, was intended to be used for
set_record_data_size, and this change succeeds for me in limited
testing but I don't have a comprehensive test suite.

One way to reproduce is by running the code from
https://gitlab.com/vatueil/veilid-file on a greater than 1 MB file
while watching variable values within
veilid-core/src/storage_manager/record_store.rs. For example: "poetry
run file put /usr/bin/tcpdump" (1.3 MB on Ubuntu 23.04). With the
original Veilid code, each of the dozens of subkey writes is checking
whether a roughly 32K value is greater than 1048576, it never is, and
thus there is never a "dht record too large" error. With the patch in
this MR, each of the dozens of subkey writes is checking whether an
ever-increasing value is greater than 1048576, it eventually is, and
the "dht record too large" error is printed. With the patch, one can
work with smaller files, e.g., do "poetry run file put /usr/bin/ssh"
(0.8 MB) followed by "poetry run file get VLD0:<_insert_key_here_>
ssh-copy" and the retrieved file ssh-copy is identical to
/usr/bin/ssh.

The more detailed behavior is that the modified code has
record.total_size of 350 on the first iteration, then 33596, 66842,
100088, etc. The original code also has record.total_size of 350 on
the first iteration, but then stays at 33246 forever (33246 is the
user-supplied subkey size of 32768, plus 128, plus the minimum record
size of 350),
2023-08-26 07:08:47 +00:00
Bruno Bigras
ff6f04be8c api_startup_json: use 'skip_all' 2023-08-26 02:01:57 +00:00