-
Notifications
You must be signed in to change notification settings - Fork 145
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
[serverless] upload r2r artifacts to azure #6543
Open
duncanista
wants to merge
24
commits into
master
Choose a base branch
from
jordan.gonzalez/r2r/add-r2r-artifacts-to-azure-pipelines
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
10220f1
make sure `upload_to_azure` includes `r2r` artifacts
duncanista d28c801
typo missing r2r
duncanista f952263
maybe this fixes the files not being found for R2R package?
duncanista 8df2c7c
another typo not using a variable
duncanista 73d99be
get artifact from same place for r2r
duncanista 2595d15
see if adding the profiler to r2r avoids issues
duncanista 662be38
typo in matrix name
duncanista e837894
add another artifact env var to see if that makes the ZipMonitoringHo…
duncanista 6340013
add universal artifact suffix for arm
duncanista 0b3bd4c
Merge branch 'master' into jordan.gonzalez/r2r/add-r2r-artifacts-to-a…
duncanista fe7fbd4
try to do it programatically instead
duncanista 0d99ca5
Merge branch 'jordan.gonzalez/r2r/add-r2r-artifacts-to-azure-pipeline…
duncanista b48994f
typo in build steps
duncanista 140c27f
somehow doing contains didnt work, trying eq
duncanista 7da60c0
i cannot find a way to do this in one line :(
duncanista 3f3e6fb
again
duncanista e895108
try this other way of doing it
duncanista c090510
remove condition from zipmonitoringhome
duncanista aa8b919
again try with quotes now
duncanista 177ed65
arch typo
duncanista 610ada1
some testing
duncanista f923184
it needs quotes
duncanista 3ce0707
another try
duncanista 4454b58
typo
duncanista File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -459,7 +459,7 @@ stages: | |
parameters: | ||
target: builder | ||
baseImage: debian | ||
command: "BuildManagedTracerHomeR2R ExtractDebugInfoLinux" | ||
command: "BuildManagedTracerHomeR2R ExtractDebugInfoLinux ValidateNativeTracerGlibcCompatibility" | ||
retryCountForRunCommand: 1 | ||
|
||
- publish: $(monitoringHome) | ||
|
@@ -537,6 +537,11 @@ stages: | |
managedBaseImage: debian | ||
artifactSuffix: linux-x64 | ||
useNativeSdkVersion: true | ||
x64-r2r: | ||
baseImage: centos7 | ||
managedBaseImage: debian | ||
artifactSuffix: linux-x64-r2r | ||
useNativeSdkVersion: true | ||
alpine: | ||
baseImage: alpine | ||
managedBaseImage: alpine | ||
|
@@ -601,6 +606,9 @@ stages: | |
x64: | ||
baseImage: debian | ||
artifactSuffix: linux-x64 | ||
x64-r2r: | ||
baseImage: debian | ||
artifactSuffix: linux-x64-r2r | ||
alpine: | ||
baseImage: alpine | ||
artifactSuffix: linux-musl-x64 | ||
|
@@ -617,14 +625,14 @@ stages: | |
# but only the musl package if we're building alpine package | ||
- task: DownloadPipelineArtifact@2 | ||
displayName: Download tracer linux native binary (linux-x64) | ||
condition: eq(variables['artifactSuffix'], 'linux-x64') | ||
condition: or(eq(variables['artifactSuffix'], 'linux-x64'), eq(variables['artifactSuffix'], 'linux-x64-r2r')) | ||
inputs: | ||
artifact: linux-tracer-home-linux-x64 | ||
artifact: linux-tracer-home-$(artifactSuffix) | ||
path: $(monitoringHome) | ||
|
||
- task: DownloadPipelineArtifact@2 | ||
displayName: Download profiler linux native binary (linux-x64) | ||
condition: eq(variables['artifactSuffix'], 'linux-x64') | ||
condition: or(eq(variables['artifactSuffix'], 'linux-x64'), eq(variables['artifactSuffix'], 'linux-x64-r2r')) | ||
inputs: | ||
artifact: linux-profiler-home-linux-x64 | ||
path: $(monitoringHome) | ||
|
@@ -671,7 +679,7 @@ stages: | |
build: true | ||
target: builder | ||
baseImage: $(baseImage) | ||
command: "ZipMonitoringHome" | ||
command: "${{format('ZipMonitoringHome --ReadyToRun {0}', eq($(variables['artifactSuffix']), 'linux-x64-r2r'))}}" | ||
retryCountForRunCommand: 1 | ||
|
||
- publish: $(artifacts)/linux-x64 | ||
|
@@ -883,6 +891,9 @@ stages: | |
arm64: | ||
baseImage: debian | ||
artifactSuffix: linux-arm64 | ||
arm64-r2r: | ||
baseImage: debian | ||
artifactSuffix: linux-arm64-r2r | ||
alpine: | ||
baseImage: alpine | ||
artifactSuffix: linux-musl-arm64 | ||
|
@@ -897,16 +908,18 @@ stages: | |
|
||
# Download _both_ musl and glibc if we're building the universal package | ||
# but only the musl package if we're building alpine package | ||
# | ||
# R2R only requires the tracer, as the profiler is not used there yet. | ||
- task: DownloadPipelineArtifact@2 | ||
displayName: Download tracer arm64 native binary | ||
condition: eq(variables['artifactSuffix'], 'linux-arm64') | ||
condition: or(eq(variables['artifactSuffix'], 'linux-arm64'), eq(variables['artifactSuffix'], 'linux-arm64-r2r')) | ||
inputs: | ||
artifact: linux-tracer-home-linux-arm64 | ||
artifact: linux-tracer-home-$(artifactSuffix) | ||
path: $(monitoringHome) | ||
|
||
- task: DownloadPipelineArtifact@2 | ||
displayName: Download profiler arm64 native binary | ||
condition: eq(variables['artifactSuffix'], 'linux-arm64') | ||
condition: or(eq(variables['artifactSuffix'], 'linux-arm64'), eq(variables['artifactSuffix'], 'linux-arm64-r2r')) | ||
inputs: | ||
artifact: linux-profiler-home-linux-arm64 | ||
path: $(monitoringHome) | ||
|
@@ -953,7 +966,7 @@ stages: | |
build: true | ||
target: builder | ||
baseImage: $(baseImage) | ||
command: "ZipMonitoringHome" | ||
command: "${{format('ZipMonitoringHome --ReadyToRun {0}', eq($(variables['artifactSuffix']), 'linux-arm64-r2r'))}}" | ||
retryCountForRunCommand: 1 | ||
|
||
- publish: $(artifacts)/linux-arm64 | ||
|
@@ -4380,6 +4393,7 @@ stages: | |
artifact: linux-universal-symbols-linux-arm64 | ||
path: $(Build.ArtifactStagingDirectory)/symbols/linux-musl-arm64 | ||
|
||
# dd-dotnet | ||
- task: DownloadPipelineArtifact@2 | ||
displayName: Download dd-dotnet linux-x64 symbols | ||
inputs: | ||
|
@@ -4484,6 +4498,31 @@ stages: | |
inputs: | ||
artifact: windows-msi-x64 | ||
path: $(Build.ArtifactStagingDirectory) | ||
|
||
# We also don't include R2R packages in the release artifacts | ||
- task: DownloadPipelineArtifact@2 | ||
displayName: Download linux x64 r2r packages | ||
inputs: | ||
artifact: linux-packages-linux-x64-r2r | ||
path: $(Build.ArtifactStagingDirectory) | ||
Comment on lines
+4503
to
+4507
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This part lgtm 🙂 |
||
|
||
- task: DownloadPipelineArtifact@2 | ||
displayName: Download linux Arm64 r2r packages | ||
inputs: | ||
artifact: linux-packages-linux-arm64-r2r | ||
path: $(Build.ArtifactStagingDirectory) | ||
|
||
- task: DownloadPipelineArtifact@2 | ||
displayName: Download linux tracer x64 r2r symbols | ||
inputs: | ||
artifact: linux-tracer-symbols-linux-x64-r2r | ||
path: $(Build.ArtifactStagingDirectory)/symbols | ||
|
||
- task: DownloadPipelineArtifact@2 | ||
displayName: Download linux tracer Arm64 r2r symbols | ||
inputs: | ||
artifact: linux-tracer-symbols-linux-arm64-r2r | ||
path: $(Build.ArtifactStagingDirectory)/symbols | ||
|
||
- bash: | | ||
# Write tracer version number to version.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty certain you don't need to do this. The tracer is a native binary, so r2r doesn't make any sense 🤔 Plus you don't actually want to use the profiler in the lambda layer anyway AFAIK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm just trying to figure out where I should update so the pipeline
package-x
goes through, but it might be a good idea to package it just in case – still trying to figure it out