GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix integration test dependencies to build and cosmetic changes by krk · Pull Request #1502 · async-profiler/async-profiler

Conversation

@krk

@krk krk commented Sep 23, 2025

Copy link
Copy Markdown
Contributor

Before this PR, all integration tests depended on all builds, causing e.g. linux-x64 integration tests to wait for macos build.

This is now fixed with some cosmetic changes to make the UI look like attached:

image

Previous look and structure

image

Motivation and context

Integration tests should not wait for builds on unrelated OS/archs.

How has this been tested?

By the current PR github action.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

fandreuz reacted with rocket emoji
All reactions
  • 🚀 1 reaction
@krk
Fix integration test dependencies to build and cosmetic changes
ee0ce67
@Baraa-Hasheesh

Baraa-Hasheesh commented Sep 23, 2025

Copy link
Copy Markdown
Contributor

This looks nice,

But it might introduce some undesired behaviour
For example if you break unit tests on macOS, the Linux integration tests would still run

https://github.com/Baraa-Hasheesh/async-profiler/actions/runs/17956941491

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

apangin
apangin reviewed Sep 23, 2025
View reviewed changes
Comment thread .github/workflows/build.yml Outdated
Comment on lines +7 to +9
type: string
required: true
description: "Platform identifier (linux-x64, linux-arm64, macos)"

@apangin apangin Sep 23, 2025

Copy link
Copy Markdown
Collaborator

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.

What are these definitions for? Are they even visible anywhere?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@krk krk Sep 24, 2025

Copy link
Copy Markdown
Contributor Author

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.

These are for the developer, not visible in UI afaik.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@apangin apangin Sep 24, 2025

Copy link
Copy Markdown
Collaborator

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.

For developers, you mean, for me and you? :) But this looks like some formal API description, not quite human-friendly. In other words, it's just too much boilerplate to explain trivial things.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

krk reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread .github/workflows/test-and-publish-nightly.yml
build-and-upload-binaries:
build-linux-arm64:
name: build / linux-arm64
uses: ./.github/workflows/build.yml

@apangin apangin Sep 23, 2025

Copy link
Copy Markdown
Collaborator

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.

Why do all paths start with ./? Doesn't it work without it?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

krk reacted with eyes emoji
All reactions
  • 👀 1 reaction

@krk krk Sep 24, 2025

Copy link
Copy Markdown
Contributor Author

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.

Doesn't work without.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread .github/workflows/test-and-publish-nightly.yml Outdated
java-version: ${{ matrix.java-version }}
architecture: ${{ matrix.architecture || '' }}

integ-containers:

@apangin apangin Sep 23, 2025

Copy link
Copy Markdown
Collaborator

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.

What do you mean by "containers" here?
Why is it separate from integ-linux-x64 and integ-linux-arm64 that also run in containers?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@krk krk Sep 24, 2025

Copy link
Copy Markdown
Contributor Author

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 meant "non-default", considering public.ecr.aws/async-profiler/asprof-builder-x86 and public.ecr.aws/async-profiler/asprof-builder-arm default. Will find a better name.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@krk krk Sep 24, 2025

Copy link
Copy Markdown
Contributor Author

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.

Merged in to integ-linux-x64.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@apangin apangin Sep 24, 2025

Copy link
Copy Markdown
Collaborator

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.

There is nothing special about these containers. The only difference is that integ-linux-* run in the same containers that are used for building artifacts, but this does not really matter. My points is, division by "default" and "non-default" is not justitied, let's keep it uniform.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@krk krk Sep 25, 2025

Copy link
Copy Markdown
Contributor Author

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.

Yes, removed the "default" vs. "non-default" separation.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread .github/workflows/test-and-publish-nightly.yml Outdated

integ-linux-arm64:
name: integration test / linux-arm64
needs: [build-jars, build-linux-arm64]

@apangin apangin Sep 23, 2025

Copy link
Copy Markdown
Collaborator

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.

Integration tests previously did not depend on build-jars? What has changed?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@krk krk Sep 24, 2025

Copy link
Copy Markdown
Contributor Author

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.

Good catch, removing.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
fandreuz
fandreuz reviewed Sep 24, 2025
View reviewed changes
Comment thread .github/workflows/test-and-publish-nightly.yml Outdated
container-image: public.ecr.aws/async-profiler/asprof-builder-alpine:corretto-11
- test-platform: linux-x64-AL2
container-image: public.ecr.aws/async-profiler/asprof-builder-amazonlinux:2
container-volumes: '["/tmp/node20:/__e/node20"]'

@fandreuz fandreuz Sep 24, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

There used to be a comment here to explain why this cryptic config is needed. Can we keep it?

async-profiler/.github/workflows/test-and-publish-nightly.yml

Lines 163 to 166 in d97a7d3

image: public.ecr.aws/async-profiler/asprof-builder-amazonlinux:2
# GHA provides Node.js by attaching a volume to the container. The container path is
# '/__e/node20', and it's not writable unless we override it via 'container.volumes'.
volumes: '["/tmp/node20:/__e/node20"]'

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

krk reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
fandreuz
fandreuz reviewed Sep 24, 2025
View reviewed changes
Comment thread .github/workflows/integ.yml
run: "[ ! -f /root/setup.sh ] || /root/setup.sh"
- name: Setup Java
uses: actions/setup-java@v4
if: ${{ !contains(inputs.test-platform, 'alpine') }}

@fandreuz fandreuz Sep 24, 2025

Copy link
Copy Markdown
Contributor

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.

Can we keep the comment here to explain why Alpine is excluded?

async-profiler/.github/workflows/test-and-publish-nightly.yml

Lines 186 to 187 in d97a7d3

# https://github.com/actions/setup-java/issues/678#issuecomment-2446279753
if: matrix.runson.display != 'alpine'

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

krk reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@krk
address comments
cd503e1
@krk

krk commented Sep 24, 2025

Copy link
Copy Markdown
Contributor Author

For example if you break unit tests on macOS, the Linux integration tests would still run

This is a feature. No point in cancelling linux tests when macos tests are failing. Linux tests may fail or pass and that could give the developer an idea of what may be wrong.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@apangin

apangin commented Sep 24, 2025

Copy link
Copy Markdown
Collaborator

On your screenshots, previous workflow ran for 4:41, whereas the new "optimized" one ran for more than a minute longer. Why is that?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@krk

krk commented Sep 24, 2025

Copy link
Copy Markdown
Contributor Author

On your screenshots, previous workflow ran for 4:41, whereas the new "optimized" one ran for more than a minute longer. Why is that?

It may have to do with waiting for a GHA runner, as I was triggering runs in quick succession before I took the screenshot.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@krk
Fix setup-java action config
45cc8e4
@krk krk mentioned this pull request Sep 25, 2025
Adding more GHA jobs to cover JDK versions on ARM #1508
Merged
@krk
remove descriptions
249776e
@krk krk mentioned this pull request Sep 25, 2025
Add Liberica to the CI on Alpaquita musl #1466
Merged
@apangin
apangin merged commit e3f646a into async-profiler:master Sep 26, 2025
@apangin

apangin commented Sep 26, 2025

Copy link
Copy Markdown
Collaborator

@krk Can job titles be shortened? This is unreadable:

image
krk reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@krk krk mentioned this pull request Sep 26, 2025
Make workflow names shorter #1514
Merged
jbachorik pushed a commit to DataDog/async-profiler that referenced this pull request Jan 2, 2026
@krk @jbachorik
Fix integration test dependencies to build and cosmetic changes (asyn…
16ea052
…c-profiler#1502)
jbachorik pushed a commit to DataDog/async-profiler that referenced this pull request Jan 6, 2026
@krk @jbachorik
Fix integration test dependencies to build and cosmetic changes (asyn…
0bb35a6
…c-profiler#1502)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@apangin apangin apangin left review comments
+1 more reviewer
@fandreuz fandreuz fandreuz left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@krk @Baraa-Hasheesh @apangin @fandreuz
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.