Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MMF-4124 Download CFamily analyzer on demand #689

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

jblievremont
Copy link
Member

@jblievremont jblievremont commented Feb 18, 2025

MMF-4124

MMF-4124

@jblievremont jblievremont force-pushed the MMF-4124-cfamily-on-demand branch 3 times, most recently from 6753381 to b730d0e Compare February 20, 2025 14:25
@jblievremont jblievremont force-pushed the MMF-4124-cfamily-on-demand branch 2 times, most recently from 8427df0 to 34efc72 Compare February 20, 2025 16:12
@jblievremont jblievremont force-pushed the MMF-4124-cfamily-on-demand branch from 34efc72 to 7a29948 Compare February 21, 2025 09:51
@@ -33,7 +32,8 @@ export async function deployBuildInfo() {
const response = await fetch(`${process.env.ARTIFACTORY_URL}/api/build`, {
method: 'PUT',
body,
headers
headers,
duplex: 'half'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new parameter was required by the move to the Node built-in fetch


const HTTP_BAD_REQUEST = 400;

export async function downloadFile(fileUrl, destPath, useAuthentication=false) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extracted to a dedicated util module since both the JRE and O# download rely on it.

Comment on lines +21 to +23
const fileReadStream = Readable.toWeb(createReadStream(`./${file}`));
const signature = await sign(fileReadStream, opts.privateKeyArmored, opts.passphrase);
writeFileSync(`./${file}.asc`, signature.toString(), 'ascii');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required by the upgrade of the openpgp library.

@@ -0,0 +1,64 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file could be downloaded from a trusted source at build time, but since it's static (and small) we can also copy it here.

@@ -31,6 +31,7 @@ const config = {
vscode: 'commonjs vscode'
},
resolve: {
mainFields: ['browser', 'module', 'main'],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New recommendation from the VSCode bundling guide.

@jblievremont jblievremont marked this pull request as ready for review February 21, 2025 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants