Skip to content

Conversation

@ashishrp-aws
Copy link
Contributor

Problem

GlibC path execution failing for sagemaker instances due to changes made to support AL2.

Solution

  • Skip GlibC and using default for sagemaker.

  • Treat all work as PUBLIC. Private feature/x branches will not be squash-merged at release time.
  • Your code changes must meet the guidelines in CONTRIBUTING.md.
  • License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ashishrp-aws ashishrp-aws requested a review from a team as a code owner June 24, 2025 17:19
@github-actions
Copy link

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.

(Experiments.instance.get('amazonqLSP', true) || Auth.instance.isInternalAmazonUser()) &&
(!isAmazonLinux2() || hasGlibcPatch())
) {
(isSageMaker() || !isAmazonLinux2() || (await hasGlibcPatch()))
Copy link
Contributor

Choose a reason for hiding this comment

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

it appears that the isAmazonLinux2 check is incorrectly flagging ubuntu containers under AL2 hosts. i do not think we need to special case sagemaker for now

Copy link
Contributor

Choose a reason for hiding this comment

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

what is the exact setup for SageMaker AL2 instances?

"@aws-sdk/smithy-client": "<3.731.0",
"@aws-sdk/util-arn-parser": "<3.731.0",
"@aws/mynah-ui": "^4.35.4",
"@aws/mynah-ui": "^4.35.6",
Copy link
Contributor

Choose a reason for hiding this comment

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

mynah update should not be in this focused change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry..previous commit sneaked in...let me correct and raise a new one

@leigaol
Copy link
Contributor

leigaol commented Jun 24, 2025

What is the root cause of this issue? If SageMaker does not have such env var, why is it going to the GLIBC patch code path

@ashishrp-aws
Copy link
Contributor Author

like richard said...that AL2 check it appears that the isAmazonLinux2 check is incorrectly flagging ubuntu containers under AL2 hosts

* @returns true if the current system is SageMaker(SMAI or SMUS)
*/
export function isSageMaker(appName: 'SMAI' | 'SMUS' = 'SMAI'): boolean {
// Check for SageMaker-specific environment variables first
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI, the check for Unified Studio i.e process.env.SERVICE_NAME === sageMakerUnifiedStudio, is already handled in isSageMakerUnifiedStudio()
And with this logic, it will bypass the check for Sagemaker AI or Unified Studio cases right? Can we extract these env variable checks omitting this process.env.SERVICE_NAME === sageMakerUnifiedStudiointo a boolean and use it in case statements for better readability?

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.

4 participants