Commit Graph

24103 Commits

Author SHA1 Message Date
Joe Bryan
19d5bd0de4 ames: gate "fragment crashed" printf on msg.veb 2021-03-18 17:04:08 -07:00
Jōshin
386949808b
Merge pull request #4599 from urbit/jo/zuse-time-unfix
zuse: fix time fix regression
2021-03-12 19:26:51 -08:00
J
ef1b125c3e zuse: fix time fix regression
Fixes #4598.

#4474 made the JSON time conversion no longer invertible, which caused
problems for chat, which uses message timestamp in milliseconds as a key
-- so chat would send a message with ms timestamp x, it would get
encoded as @da x, but then when it went back through the conversion to
milliseconds, it would often (not always) get encoded as x-1.

I still do not fully understand why this is -- and why it doesn't seem
to be a problem with seconds based on cursory testing -- but integer
multiplication and division generally do not invert. And adding a half a
millisecond to the input date before converting it resolves the issue
and makes the functions invertible.

I added a regression test, so hopefully the next courageous adventurer
who winds up here after wondering why +unm looks funny will have a
safeguard against some of the mistakes I made.
2021-03-12 20:06:10 +00:00
janeway
9c9446d77f
glob: update to 0v8buag.lcoib.dupqj.iprqk.spvqf 2021-03-04 19:45:20 -08:00
Philip Monk
538a5eaf15
threads: make compile
mostly by deleting them
2021-03-04 19:35:31 -08:00
Philip Monk
f5ce79da9d
marks: fixup
Many of the marks were broken, and staticizing the marks revealed this.
This makes them build.
2021-03-04 19:21:34 -08:00
Philip Monk
a0146f4a44
clay: add %e, %f requests
For static naves, casts respectively
2021-03-04 18:28:16 -08:00
Philip Monk
631fec25c7
Merge remote-tracking branch 'origin/la/graph-threads' into philip/clay-upgrade 2021-03-04 17:38:38 -08:00
Logan Allen
69fa1296be graph-threads: make %groupify and %restore compile 2021-03-04 19:09:41 -06:00
Philip Monk
f3f875304f
drum-put: clam 2021-03-04 16:26:05 -08:00
Philip Monk
008f8ac54d
tests: update for removing +volt 2021-03-04 15:20:43 -08:00
janeway
aa07cc4cba
glob: update to 0vah4o5.ark7i.iqunl.or5d7.3rm2e 2021-03-04 14:47:10 -08:00
Philip Monk
3c99ad06ab
noun: add +mash 2021-03-04 14:41:38 -08:00
janeway
7e6672d356
glob: update to 0v1.5ahkf.kj160.veq26.sbnii.p6h5t 2021-03-04 14:28:54 -08:00
Philip Monk
4a066c8d4d
clay: fix upgrade 2021-03-04 13:41:07 -08:00
Philip Monk
137f1cdff3
Merge remote-tracking branch 'origin/ted/static-clay-3' into release/next-sys 2021-03-03 18:42:44 -08:00
Philip Monk
6215137ed5
Merge remote-tracking branch 'origin/ted/ordered-map-fix' into release/next-sys 2021-03-03 18:20:33 -08:00
Philip Monk
faffc74e5d
Merge remote-tracking branch 'origin/m/dbug-cue' into release/next-sys 2021-03-03 18:19:50 -08:00
Philip Monk
0e427c3c7e
Merge commit '5a6a88c' into release/next-sys 2021-03-03 18:18:12 -08:00
Philip Monk
6e3d1680a7
Merge remote-tracking branch 'origin/master' into release/next-sys 2021-03-03 17:54:57 -08:00
fang
5a6a88c4db
Merge pull request #4533 from urbit/m/safer-tally
tally: be safer wrt mangled metadata
2021-03-04 00:13:27 +01:00
matildepark
c16815b003
Merge pull request #4347 from urbit/lf/moar-lsp
language-server: fixes & improvements
2021-03-03 14:51:40 -05:00
fang
883a56382f
tally: be safer wrt mangled metadata
Previously, if metadata-store said a graph existed, we'd unconditionally scry
for it. Now, we make sure the graph actually exists, to avoid risking a crash.
2021-03-03 17:14:07 +01:00
fang
0ba53e3c77
Merge pull request #4527 from juped/png-aura
Change PNG aura from @t to @
2021-03-03 16:29:02 +01:00
Raymond E. Pasco
2823b2729b
Change PNG aura from @t to @
No PNG is (sane %t) - the PNG header alone isn't.

This should also be octs, not an atom, as a binary filetype - it works
for PNG purely by coincidence (no valid PNG can end with a sequence of
00 bytes, because they have to end with 00 00 00 00 49 45 4e 44 ae 42 60
82).
2021-03-02 14:00:12 -05:00
matildepark
7d451a37b8
Merge pull request #4525 from urbit/jt/npm-publish
meta: publish interface packages when available
2021-03-02 12:11:14 -05:00
Jared Tobin
c20907f54e
meta: switch publish action to production mode
Targets it at master, drops the job dry-run flags.
2021-03-02 15:39:17 +04:00
Jared Tobin
ba426ef78d
meta: simplify yaml
'working-directory' can just be specified on-site.
2021-03-02 15:37:11 +04:00
Jared Tobin
cc345171f3
meta: tell action where package.jsons are 2021-03-02 15:34:46 +04:00
Jared Tobin
8d938e205b
meta: publish interface packages when available
Adds a workflow that, on every push to master, will publish new versions
of interface subpackages to the NPM registry if any are available.

Staged to trigger on a test branch for now.
2021-03-02 15:31:06 +04:00
Jared Tobin
522393fda8
Merge pull request #4518 from urbit/jt/ops-merge
meta: adjust merge operations
2021-03-02 09:45:34 +04:00
Jōshin
b7583bf3e2
Merge pull request #4484 from urbit/jo/gcp-settings-store
GCP storage support
2021-03-01 18:01:07 -08:00
J
359896a23d interface: fix a few type imports
Missed these in the initial pass, found them by looking at "Files
Changed" in the Github UI.
2021-03-01 22:38:20 +00:00
J
35089f6656 interface: basic error handling on upload failures 2021-03-01 22:28:29 +00:00
J
af9e829464 interface: correct useEffect memo 2021-03-01 22:14:41 +00:00
J
f85ef9fcb4 interface: storage prop unifying gcp and s3
N.B. this boldly assumes that store state will always contain a valid
storage element that will contain gcp and s3 elements. This seems like a
fair assumption.
2021-03-01 22:14:19 +00:00
J
ce1c69e0d1 interface: braces around if statements 2021-03-01 21:36:00 +00:00
Jared Tobin
a51d95d806
meta: adjust merge operations
Adds a 'merge-release' workflow that runs on any push to a release
branch.  At present the only job merges the triggering branch to
'ops-tlon'.

Also renames the 'merge' workflow to 'merge-master' to distinguish it
appropriately.
2021-03-01 18:46:02 +04:00
Philip Monk
413413b70c
zuse: traverse always delete 2021-02-26 21:03:20 -08:00
Philip Monk
5ac70ec974
ames: reset num-live to actual number of live packets 2021-02-26 20:53:27 -08:00
Ted Blackman
4c190eb2e9 zuse: ordered-map minor cleanup 2021-02-26 22:39:41 -05:00
Ted Blackman
ccc704b22e zuse: remove unused +nup:ordered-map 2021-02-26 22:38:04 -05:00
Ted Blackman
fcbb70de9e zuse: actually fix ordered-map +traverse this time 2021-02-26 22:37:11 -05:00
Ted Blackman
2442f9bb93 zuse: fix ordered-map delete many 2021-02-26 21:42:22 -05:00
fang
c7d86015aa
dbug: assume new lane encoding 2021-02-27 01:41:16 +01:00
J
c66c197936 interface: fix regression in canUpload 2021-02-27 00:25:17 +00:00
J
d8a7ee56e1 interface: fix field name that broke GCP support
Tests would be great, wouldn't they...
2021-02-27 00:08:51 +00:00
J
c1b259af5b interface, gcp: don't spam the console with 500s
Options here were: make the get-token thread try to return a unit, or
write a different thread to check whether GCP Storage seemed to be
configured and poll on that thread, or move the whole thing into a Gall
app.

The compromise between time-to-implement and overall cleanliness seemed
to be to write a different thread that just checks whether the settings
fields have been poked. Unfortunately this means GcpManager is now a
somewhat hefty JavaScript state machine.

Took out the logic to check whether S3 was configured in GcpManager,
since it was really only there to prevent spamming the console with
500s. If you have both S3 and GCP Storage configured for some reason,
you will now use GCP per the logic in useStorage.
2021-02-26 23:42:57 +00:00
J
040d8c06ae interface: fix S3 canUpload logic
s3.credentials is always set, but the fields are all '' if s3 is not
configured. So prior to this change, if the user had configured an
active bucket, they would always be shown an upload dialog even if they
had no storage configured.
2021-02-26 22:12:52 +00:00
J
347d51fde9 interface: cleaner API, robust GcpManager retry
GcpApi now acts like other APIs.

Since GcpManager can no longer get at the token exipry by inspecting the
raw update, it must depend on the global store instead. This also means
it can check whether the user has configured S3, and not try to refresh
the token in that case.

In the case where no storage is configured, this will spam the console
with request failures since the thread returns 500 if there is no token.
Perhaps this is a good argument for making  the thread return a unit.
2021-02-26 22:10:15 +00:00