summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-05-16set UNTRUSTED_ALLOW as default; some LLCommitCallbackInfo clean upMnikolenko Productengine
2024-05-16Merge branch 'lua-ui-callbacks' into release/luau-scriptingMnikolenko Productengine
2024-05-16adjust the flag to be untrusted block/allow/throttleMnikolenko Productengine
2024-05-15Fix channel detection for mac buildsBrad Linden
2024-05-15Move all release_run logic into setvar job.Brad Linden
2024-05-15Experiment with getting manually triggered workflow builds to optionally do ↵Brad Linden
a release
2024-05-15Streamline the new workflow `RELEASE_RUN` logic a little.Nat Goodspeed
Since downstream jobs reference the output of the new `setvar` job, instead of directly referencing global `env.RELEASE_RUN`, no need to set `RELEASE_RUN` in the global environment.
2024-05-15Merge branch 'main' into nat/releaseos following Maint X promotionNat Goodspeed
2024-05-15Merge commit 'e7eced3' into nat/releaseos for whitespace fix.Nat Goodspeed
2024-05-15Make env.RELEASE_RUN the empty string if falseNat Goodspeed
not the string "false", which is true.
2024-05-15Can't reference global env in job.if either.Nat Goodspeed
2024-05-15Try to work around workflow YAML env setting limitation.Nat Goodspeed
2024-05-15Fix missing #include in lltextvalidate.cppNat Goodspeed
2024-05-15Merge branch 'release/luau-scripting' into lua-timers after Maint XNat Goodspeed
2024-05-15Manual whitespace cleanup (fix_whitespace.py).Nat Goodspeed
2024-05-15Merge commit 'e7eced3' into lua-timers for whitespace fixes.Nat Goodspeed
2024-05-15Merge branch 'main' into release/luau-scripting for last Maint X fix.Nat Goodspeed
2024-05-15Add trusted flag to UI callbacks, so not everything is accessible from the ↵Mnikolenko Productengine
script
2024-05-15#1457 Fix the tests on macAndrey Lihatskiy
(cherry picked from commit 82d713782529074b03720833038cb0df2b8bcffd)
2024-05-15Merge branch 'main' into release/luau-scripting for Maint X release.Nat Goodspeed
2024-05-15Manual whitespace fixes (fix_whitespace.py).Nat Goodspeed
2024-05-15Merge commit 'e7eced3' into release/luau-scripting: whitespace fix.Nat Goodspeed
2024-05-15Make leap.lua honor an "error" key in viewer response.Nat Goodspeed
2024-05-14Increment viewer version to 7.1.8Nat Goodspeed
following promotion of secondlife/viewer #705: Maintenance X
2024-05-14Merge DRTVWR-591-maint-X to main on promotion of secondlife/viewer #705: ↵Nat Goodspeed
Maintenance X
2024-05-13Run ReleaseOS builds, but only when a release page is requested.Nat Goodspeed
2024-05-11Fix syntax error in build.yaml to enable Windows ReleaseOSNat Goodspeed
2024-05-11Turn on GH Windows ReleaseOS buildNat Goodspeed
2024-05-10Fix up a few #includesNat Goodspeed
2024-05-10Merge pull request #1444 from secondlife/nat/slvoicenat-goodspeed
Update to S3-published GHA build of slvoice.
2024-05-10Fix latent access violation in ~LLEventPump() if LLEventPumps gone.Nat Goodspeed
Instead of making LLEventPumps an LLHandleProvider, and storing an LLHandle<LLEventPumps> in each LLEventPump instance, just make ~LLEventPump() query LLEventPumps::instanceExists() before calling instance().
2024-05-10Reapply slvoice package URLs with autobuild 3.9.5Nat Goodspeed
2024-05-09Add "Timers" LLEventAPI, actually a LazyEventAPI, for LL::Timers.Nat Goodspeed
Rename LL::Timers::scheduleRepeating() to scheduleEvery().
2024-05-09Bump up coroutine stack size: saw C00000FD test termination.Nat Goodspeed
(cherry picked from commit dc0b3aed4782e4e4835fd6b9d59d1d70b78be4a7)
2024-05-09Remove `creds=github` from slvoice platform entries.Nat Goodspeed
https://github.com/secondlife/autobuild/issues/46 Also remove temporary `continue-on-error` setting.
2024-05-09Merge branch 'release/luau-scripting' into lua-timersNat Goodspeed
2024-05-09Merge pull request #1419 from secondlife/lua-resizable-debugfloaternat-goodspeed
Copy xml files to scripts/lua; make Lua debug floater resizable
2024-05-08Tweak a couple thingsNat Goodspeed
2024-05-08Merge branch 'nat/cleanup-timers' into lua-timers.Nat Goodspeed
In its GitHub PR build, the nat/cleanup-timers branch hit a (rare!) mathmisc_test failure. But since the test failure didn't report any of the randomly generated values that led to the failure, all we can do is shrug and rerun. Pull in the changeset from that branch that adds mathmisc_test reporting in case of another such failure.
2024-05-08On mathmisc_test failure with random values, report values.Nat Goodspeed
2024-05-08Merge branch 'nat/cleanup-timers' into lua-timers.Nat Goodspeed
2024-05-08Bump up coroutine stack size: saw C00000FD test termination.Nat Goodspeed
2024-05-08Fix llerror_test.cpp now that LL_ERRS() includes a stacktrace.Nat Goodspeed
2024-05-08Build both platforms on GitHub to help diagnose slvoice URL trouble.Nat Goodspeed
2024-05-07Merge remote-tracking branch 'origin/main' into nat/cleanup-timersNat Goodspeed
2024-05-07Refactor LLLater -> LL::Timers to accommodate nonpositive repeats.Nat Goodspeed
In the previous design, the tick() method ran each task exactly once. doPeriodically() was implemented by posting a functor that would, after calling the specified callable, repost itself at (timestamp + interval). The trouble with that design is that it required (interval > 0). A nonpositive interval would result in looping over any timers with nonpositive repetition intervals without ever returning from the tick() method. To avoid that, doPeriodically() contained an llassert(interval > 0). Unfortunately the viewer failed that constraint immediately at login, leading to the suspicion that eliminating every such usage might require a protracted search. Lifting that restriction required a redesign. Now the priority queue stores a callable returning bool, and the tick() method itself contains the logic to repost a recurring task -- but defers doing so until after it stops looping over ready tasks, ensuring that a task with a nonpositive interval will at least wait until the following tick() call. This simplifies not only doPeriodically(), but also doAtTime(). The previous split of doAtTime() into doAtTime1() and doAtTime2() was only to accommodate the needs of the Periodic functor class. Ditch Periodic. Per feedback from NickyD, rename doAtTime() to scheduleAt(), which wraps its passed nullary callable into a callable that unconditionally returns true (so tick() will run it only once). Rename the doAfterInterval() method to scheduleAfter(), which similarly wraps its nullary callable. However, the legacy doAfterInterval() free function remains. scheduleAfter() also loses its llassert(seconds > 0). Rename the doPeriodically() method to scheduleRepeating(). However, the legacy doPeriodically() free function remains. Add internal scheduleAtRepeating(), whose role is to accept both a specific timestamp and a repetition interval (which might be ignored, depending on the callable). scheduleAtRepeating() now contains the real logic to add a task. Rename getRemaining() to timeUntilCall(), hopefully resolving the question of "remaining what?" Expand the std::pair metadata stored in Timers's auxiliary unordered_map to a Metadata struct containing the repetition interval plus two bools to mediate deferred cancel() processing. Rename HandleMap to MetaMap, mHandles to mMeta. Defend against the case when cancel(handle) is reached during the call to that handle's callable. Meta::mRunning is set for the duration of that call. When cancel() sees mRunning, instead of immediately deleting map entries, it sets mCancel. Upon return from a task's callable, tick() notices mCancel and behaves as if the callable returned true to stop the series of calls. To guarantee that mRunning doesn't inadvertently remain set even in the case of an exception, introduce local RAII class TempSet whose constructor accepts a non-const variable reference and a desired value. The constructor captures the current value and sets the desired value; the destructor restores the previous value. Defend against exception in a task's callable, and stop calling that task. Use LOG_UNHANDLED_EXCEPTION() to report it.
2024-05-07Copy xml files to scripts/lua; make Lua debug floater resizableMnikolenko Productengine
2024-05-06Update to S3-published GHA build of slvoice.Nat Goodspeed
2024-05-03Log a stack trace on LL_ERRS().Nat Goodspeed
2024-05-03Prevent LLLater from thrashing on LLCallbackList.Nat Goodspeed
If there is exactly one doPeriodically() entry on LLLater, the mQueue entry is deleted before Periodic::operator()() is called. If Periodic's callable returns false, it reinstates itself on mQueue for a future time. That's okay, because the test for mQueue.empty(), and the consequent disconnect from LLCallbackList, happens only after that Periodic call returns. But at the moment Periodic reinstates itself on mQueue, mQueue happens to be empty. That alerts doAtTime2() to register itself on LLCallbackList -- even though at that moment it's already registered. Semantically that's okay because assigning to the LLLater's LLCallbackList::temp_handle_t should implicitly disconnect the previous connection. But it's pointless to create a new connection and disconnect the old one every time we call that lone Periodic. Add a test for mLive.connected(); that way if we already have an LLCallbackList connection, we retain it instead of replacing it with a new one.