Commit Graph

46840 Commits (db2953e5de12eb5eea347f4069be9c0ab015dcdb)

Author SHA1 Message Date
Nat Goodspeed db2953e5de SL-19242: Have to prefix upload-artifact exclude paths with pathname. 2023-09-11 15:29:32 -04:00
Nat Goodspeed 0d0dafc1be SL-19242: Fix minor error in viewer_manifest.set_github_output(). 2023-09-11 13:33:30 -04:00
Nat Goodspeed 0107f030c8 SL-19242: Eliminate cruft from Windows app image artifact 2023-09-11 12:53:34 -04:00
Nat Goodspeed 29300a1fd3 SL-19242: Try harder to post artifacts containing exactly app image.
In a Windows build tree, we don't actually have an app-named top directory, so
don't package its containing directory -- just the app dir itself, e.g.
"newview/Release".

In a Mac build tree, though we do have "Second Life Mumble.app", its parent
directory also contains other large stuff. Try posting a temp directory
containing a symlink to the .app.

Ditch the "!*.bat" exclusion: the presence of a second path (even an
exclusion) changes how upload-artifact nests its contents.
2023-09-11 10:07:51 -04:00
Nat Goodspeed dc0ebc96a4 SL-19242: Try passing upload-artifact a normalized relative path. 2023-09-09 09:36:03 -04:00
Nat Goodspeed ee82cd046f SL-19242: Resolve '..' in viwer_app path before trying to upload. 2023-09-08 19:25:47 -04:00
Nat Goodspeed 63d5d38e36 SL-18837: Stop failing build.sh if there's no installer.
This unblocks ReleaseOS builds, and also preps for SL-19242.

Streamline build.sh's Uploads section.
2023-09-08 17:24:04 -04:00
Nat Goodspeed 2d04cc14d3 SL-19242: Post -app artifact, not -exe, with entire install image.
Previously we posted Windows-exe, macOS-exe artifacts that were a little
inconsistent: Windows-exe contained just the Windows executable, whereas
macOS-exe contained the whole .app tree (but without the .app directory).

Change to post Windows-app, macOS-app artifacts that each contain the whole
viewer install image, including the top-level application name directory. This
is what we'll need to codesign and notarize.
2023-09-08 17:01:46 -04:00
Nat Goodspeed c87d9c635b SL-18837: Suppress ReleaseOS for now. 2023-09-08 14:30:05 -04:00
Nat Goodspeed c7546ea65e SL-18837: Make llsdserialize_test debug output conditional.
Move hexdump() and hexmix() stream formatters to new hexdump.h for potential
use by other tests.

In toPythonUsing() helper function, add a temp file to receive Python script
debug output, and direct debug output to that file. On test failure, dump the
contents of that file to the log.

Give NamedTempFile::peep() an optional target std::ostream; refactor
implementation as peep_via() that accepts a callable to process each text
line. Add operator<<() to stream the contents of a NamedTempFile object to
ostream -- but don't use that with LL_DEBUGS(), as it flattens the file
contents into a single log line. Instead add peep_log(), which streams each
individual text line to LL_DEBUGS().
2023-09-08 14:14:09 -04:00
Ansariel d459b3a1ca Fix builds using OpenAL
(cherry picked from commit fd73b6e5cf)
2023-09-08 12:42:21 -04:00
Nat Goodspeed 44181628d5 SL-18837: Revert "Add OpenAL::createDefaultStreamingAudioImpl()."
This reverts commit 6cb906c449.
2023-09-08 12:41:04 -04:00
Nat Goodspeed 7e655d8c82 SL-18837: Revert "Typo for LLAudioEngine_OpenAL"
This reverts commit 46bd102e80.
2023-09-08 12:40:37 -04:00
Nat Goodspeed 46bd102e80 SL-18837: Typo for LLAudioEngine_OpenAL 2023-09-08 11:00:16 -04:00
Nat Goodspeed 6cb906c449 SL-18837: Add OpenAL::createDefaultStreamingAudioImpl().
LLAudioEngine added a new abstract virtual method that wasn't yet implemented
for LLStreamingAudio_OpenAL.
2023-09-08 10:35:10 -04:00
Nat Goodspeed eb84585875 SL-18837: NamedTempFile must be binary mode on Windows. 2023-09-08 09:50:38 -04:00
Nat Goodspeed a45c9f68c3 SL-18837: Add debugging output to llsdserialize_test.cpp. 2023-09-08 08:58:32 -04:00
Nat Goodspeed 77227cf5c4 SL-18837: Suppress BUGSPLAT_DB for ReleaseOS builds. 2023-09-07 14:09:54 -04:00
Nat Goodspeed 95aa00f742 SL-18837: Fix minor merge glitch. 2023-09-07 13:40:46 -04:00
Nat Goodspeed bac73831c0 SL-18837: String literals are single-quoted in GitHub expressions. 2023-09-07 11:48:15 -04:00
Nat Goodspeed db71f834bc SL-18837: Without USE_BUGSPLAT, no target generate_symbols. 2023-09-07 11:44:53 -04:00
Nat Goodspeed 949909013e SL-18837: Segregate ReleaseOS artifacts; don't even upload.
Eliminate references to (no longer set) matrix.addrsize.
2023-09-07 11:38:00 -04:00
Nat Goodspeed b8e6777439 SL-18837: Merge branch 'main' into actions 2023-09-07 11:15:56 -04:00
Nat Goodspeed 755f9d9ac9 SL-19243: Specify macos-latest for post-mac-symbols.
We want to run on a GitHub-hosted runner rather than one of our own.
2023-09-06 17:03:22 -04:00
Nat Goodspeed 5bf2317bd8 SL-19243: Skip older Mac symbol upload
because it moves the xcarchive.zip file away from where we later want to post
it to GitHub.
2023-09-02 12:19:26 -04:00
Nat Goodspeed 2eda2eb21b SL-19242: Fix duplicated 'Second Life Mumble.app' path component
in the path passed as the macOS viewer_exe GitHub output.
2023-09-02 12:17:06 -04:00
Nat Goodspeed 3eea556c28 SL-19243: Post xcarchive.zip instead of separate symbols tarball.
On Mac, in the CMake USE_BUGSPLAT logic, we created both xcarchive.zip (which
is what BugSplat wants to see) and secondlife-symbols-darwin -64.tar.bz2 (which
we don't think is used for anything). The tarball was posted to codeticket --
but why? If the point is to manually re-upload to BugSplat in case of failure,
we'll do better saving xcarchive.zip to codeticket.

For SL-19243, posting xcarchive.zip directly supports the goal of breaking out
the upload to BugSplat as a separate step.

Anyway, since xcarchive.zip is a superset of the tarball, the tarball can be
recreated from the zip file, whereas the zip file can't be recreated from the
tarball without opening the .dmg installer and extracting the viewer executable.

If the xcarchive.zip file exists (that is, on Mac), post that to codeticket or
GitHub, as applicable, instead of the tarball. In fact, in the USE_BUGSPLAT
case, don't even bother creating the tarball since we're going to ignore it.

Make the new build.sh logic that insists on BUGSPLAT_USER and BUGSPLAT_PASS
conditional on BUGSPLAT_DB.
2023-09-02 11:02:23 -04:00
Nat Goodspeed b13c1f77c7 SL-19242: Emphasize to upload-artifact that our .app is a directory 2023-09-02 09:44:24 -04:00
Nat Goodspeed bfb059d4ff SL-19243: Try harder to list contents of xcarchive.zip.
upload-mac-symbols.sh actually moves the xcarchive.zip file to /tmp, which is
why we couldn't find it when trying to list its contents after the upload.
2023-09-01 15:28:36 -04:00
Nat Goodspeed 1f6213a584 SL-19243: Try to list contents of xcarchive.zip 2023-09-01 12:58:53 -04:00
Nat Goodspeed 00d8d4e9cd SL-19243: Upload Mac .app as another build artifact. 2023-09-01 12:16:36 -04:00
Nat Goodspeed 7cedb1eb20 SL-19243: Add post-mac-symbols job using viewer-post-bugsplat-mac.
The initial viewer-post-bugsplat-mac is just a placeholder so far, but we can
flesh it out while the viewer builds necessitated by this change are running,
and then we can iterate on viewer-post-bugsplat-mac without having to rebuild
the viewer.
2023-09-01 10:53:02 -04:00
Nat Goodspeed 2ee8cb0e16 SL-19243: Job to post windows symbols must run on Windows. 2023-09-01 07:46:32 -04:00
Nat Goodspeed c8aa205fab SL-19243: Try to robustify GH Mac volume detach
Use a retry loop very like the code-signing retry loop.
2023-08-31 22:35:49 -04:00
Nat Goodspeed 6a219d147d SL-18837: Enlarge default coroutine stack size.
A test executable on a GitHub Windows runner failed with C00000FD, which
reports stack overflow.

(cherry picked from commit aab7b4ba3812e5876b1205285bcfd8cff96bcac9)
2023-08-31 21:11:11 -04:00
Nat Goodspeed 3147b55cec SL-19243: Fix wonky 'if:' in build.yaml 2023-08-31 17:28:25 -04:00
Nat Goodspeed 348d710707 SL-19243: Fix 'uses:' reference to viewer-post-bugsplat-windows 2023-08-31 16:09:12 -04:00
Nat Goodspeed 58e8c3567f SL-19243: Fix build.yaml syntax error. 2023-08-31 16:06:13 -04:00
Nat Goodspeed e8cd5205e8 SL-19243: Try to run Windows BugSplat uploads as a separate GH job.
Upload a new Windows-exe artifact containing just the executable (needed by
BugSplat) separately from the artifact containing the whole NSIS installer.
This requires a new viewer_exe step output set by viewer_manifest.py.

Define viewer_channel and viewer_version as build job outputs.

Set viewer_channel in build.yaml when tag is interpreted.

Set viewer_version in build.sh at the point when it would have posted
viewer_version.txt to codeticket.

Add a post-windows-symbols job dependent on the build job that engages
secondlife/viewer-post-bugsplat-windows, which in turn engages
secondlife/post-bugsplat-windows. We keep the actual upload code in a separate
repo in case we need to modify that code before rerunning to resolve upload
errors. If we kept the upload code in the viewer repo itself, rerunning the
upload with modifications would necessarily require rerunning the viewer
build, which would defeat the purpose of SL-19243.

Because of that new upload job in build.yaml, skip Windows symbol uploads
in build.sh.

Use a simple (platform name) artifact name for metadata because of
flatten_files.py's filename collision resolution.

Use hyphens, not spaces, in remaining artifact names: apparently
download-artifact doesn't much like artifacts with spaces in their names.

Only run the release job when in fact there's a tag. Without that, we get
errors. We need not create flatten_files.py's output directory beforehand
because it will do that implicitly.
2023-08-31 15:53:56 -04:00
Nat Goodspeed b06aa53f59 SL-18837: Only list the downloaded artifacts. 2023-08-29 20:03:21 -04:00
Nat Goodspeed 7779cebdcd SL-18837: Introduce flatten_files.py and use to post release assets 2023-08-29 17:55:53 -04:00
Nat Goodspeed 25efba151f SL-18837: On Windows, LLLeap partial final line test failed.
Add DEBUG log output to try to diagnose.
2023-08-29 11:12:32 -04:00
Nat Goodspeed 929aa15c80 SL-18837: Experiment with download-artifact downloading all files. 2023-08-28 13:21:16 -04:00
Vir Linden d454512050 Increment viewer version to 6.6.15
following promotion of DRTVWR-582
2023-08-23 15:20:19 -04:00
Nat Goodspeed 70e4c73baa SL-18837: Engage initial GH viewer release script. 2023-08-18 11:28:15 -04:00
Nat Goodspeed 73a857ba31 SL-18837: Use 'needs' context, not 'jobs' context
in release job to reference outputs from the build job.

Also mark the release as prerelease, and fail the release action if we still
can't find the files we're trying to post.
2023-07-22 08:32:21 -04:00
Nat Goodspeed f9a30e7ed1 SL-18837: Try posting build.yaml step outputs as job outputs. 2023-07-22 08:18:13 -04:00
Nat Goodspeed 6605403661 SL-18837: Tags can't have spaces or colons. Look for valid ones. 2023-07-21 15:24:11 -04:00
Nat Goodspeed 7cca3506b6 SL-18837: Try triggering GH release for tag like "Second Life "... 2023-07-21 14:02:00 -04:00
Nat Goodspeed 25330b47f9 SL-18837: Merge branch 'main' of secondlife/viewer into actions 2023-07-21 11:27:55 -04:00