-
Notifications
You must be signed in to change notification settings - Fork 300
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
ruby 3.4: interpreter & standard gems #35869
ruby 3.4: interpreter & standard gems #35869
Conversation
b1cae2d
to
9884861
Compare
Gen AI suggestions to solve the build error: Based on the build output, while the package appears to build successfully, there seems to be a licensing issue that needs to be addressed. • Detected Error: "SPDXRef-Package-ruby3.4-racc-1.8.1-0: no license specified, defaulting to NOASSERTION" • Error Category: Configuration • Failure Point: SBOM generation and package linting phase • Root Cause Analysis: The package YAML file specifies "license: Ruby" but this isn't being properly recognized in the SPDX format required by the build system. • Suggested Fix: Update the copyright section in the YAML file to use proper SPDX license identifier: copyright:
- license: Ruby OR BSD-2-Clause
licenses: ["Ruby", "BSD-2-Clause"]
paths:
- "*" • Explanation:
• Additional Notes:
• References:
|
Gen AI suggestions to solve the build error: • Detected Error: No explicit error is shown in the build output. The build appears to complete successfully, generating the package ruby3.4-racc-1.8.1-r0.apk. • Error Category: Configuration/Packaging • Failure Point: The failure is likely in the presubmit checks, specifically related to package metadata/licensing. • Root Cause Analysis: The key warning in the output is:
This indicates the package is missing proper license specification in the melange YAML. • Suggested Fix: copyright:
- license: Ruby
paths:
- "*" • Explanation:
• Additional Notes:
• References:
|
Gen AI suggestions to solve the build error: Based on the build log, while the package appears to build successfully, there seems to be a licensing issue that needs to be addressed. • Detected Error: "SPDXRef-Package-ruby3.4-racc-1.8.1-0: no license specified, defaulting to NOASSERTION" • Error Category: Configuration • Failure Point: SBOM generation and package licensing validation • Root Cause Analysis: The package.yaml is missing proper license specification despite having "license: Ruby" in the copyright section. The build system requires SPDX-compliant license identifiers. • Suggested Fix: Update the package.yaml copyright section to use SPDX license identifier: copyright:
- license: Ruby OR BSD-2-Clause
spdx-id: Ruby OR BSD-2-Clause
paths:
- "*" • Explanation:
• Additional Notes:
• References:
|
Gen AI suggestions to solve the build error: Based on the build log, I don't actually see a build error - the package appears to have built successfully. Let me break this down: • Detected Error: No actual error - the build completed successfully with package ruby3.4-racc-1.8.1-r0.apk being created • Build Status Summary:
• Output Analysis:
• Verification Points:
• Additional Notes: If you want to address this warning, you could add the license explicitly in the package definition: package:
name: ruby3.4-racc
version: 1.8.1
epoch: 0
description: "LALR(1) parser generator"
copyright:
- license: Ruby
- license: BSD-2-Clause References:
Since there's no actual build error, no further fixes are needed - the package is building successfully. |
Gen AI suggestions to solve the build error: • Detected Error: • Error Category: Configuration • Failure Point: Package linting step, specifically license verification • Root Cause Analysis: The package YAML is missing or has incorrect license specification, causing the linter to default to NOASSERTION for the SPDX license identifier • Suggested Fix: package:
name: ruby3.4-racc
version: 1.8.1
epoch: 0
description: "A LALR(1) parser generator written in Ruby" # Add description
copyright:
- license: Ruby OR BSD-2-Clause
sources:
- https://github.com/ruby/racc • Explanation: The Ruby gem Racc is dual-licensed under Ruby License and BSD-2-Clause. Adding proper license information will satisfy the package linting requirements and provide accurate licensing information in the SBOM. • Additional Notes:
• References:
|
Gen AI suggestions to solve the build error: Based on the build output, while the package appears to build successfully, there seems to be a licensing issue that needs to be addressed. • Detected Error: "SPDXRef-Package-ruby3.4-racc-1.8.1-0: no license specified, defaulting to NOASSERTION" • Error Category: Configuration • Failure Point: SBOM generation and package linting phase • Root Cause Analysis: The package YAML is missing proper license specification despite having a "Ruby" license declared in the copyright section. • Suggested Fix: package:
name: ruby3.4-racc
version: 1.8.1
epoch: 0
copyright:
- license: Ruby
licenses:
- Ruby • Explanation: • Additional Notes:
• References:
|
Gen AI suggestions to solve the build error: • Detected Error: "SPDXRef-Package-ruby3.4-racc-1.8.1-0: no license specified, defaulting to NOASSERTION" • Error Category: Configuration • Failure Point: Package metadata validation during SBOM generation • Root Cause Analysis: The package YAML is missing a proper SPDX license identifier in the copyright section, causing the build system to default to NOASSERTION • Suggested Fix: copyright:
- license: Ruby
spdx-license-identifier: Ruby • Explanation:
• Additional Notes:
• References:
|
Gen AI suggestions to solve the build error: Based on the build output, I notice there's no actual error - the build appears to have completed successfully. However, let me analyze the output to ensure everything is working as expected: • Detected Error: No actual error - build completed successfully with package generation
• Suggested Fix: No fix needed, but recommend adding these improvements to the YAML:
package:
name: ruby3.4-racc
version: 1.8.1
epoch: 0
description: "LALR(1) parser generator for Ruby"
copyright:
- license: Ruby OR BSD-2-Clause
dependencies:
runtime:
- ruby-3.4 • Explanation:
• Additional Notes:
• References:
The build is actually working correctly - what appeared as an error was just standard build output and a warning about license specification that can be addressed with the suggested YAML improvements. |
Gen AI suggestions to solve the build error: Based on the build output, I'll analyze the error and provide a solution: • Detected Error: • Error Category: Configuration • Failure Point: Package metadata validation during SBOM generation • Root Cause Analysis: The package configuration is missing the required SPDX license identifier in the copyright section, even though the license is specified as "Ruby" • Suggested Fix: copyright:
- license: Ruby
spdx-id: Ruby
paths:
- "*" • Explanation:
• Additional Notes:
• References:
|
Gen AI suggestions to solve the build error: Based on the build log, while the package appears to build successfully, there seems to be a licensing issue that needs to be addressed. • Detected Error: • Error Category: Configuration • Failure Point: SBOM generation and package linting phase • Root Cause Analysis: The package.yaml is missing proper license specification despite having • Suggested Fix: package:
name: ruby3.4-racc
version: 1.8.1
epoch: 0
copyright:
- license: Ruby OR Ruby-2.0
- license-file: /usr/lib/ruby/gems/3.4.0+0/gems/racc-1.8.1/COPYING • Explanation:
• Additional Notes:
• References:
|
Gen AI suggestions to solve the build error: • Detected Error: "SPDXRef-Package-ruby3.4-racc-1.8.1-0: no license specified, defaulting to NOASSERTION" • Error Category: Configuration • Failure Point: Package metadata validation during SBOM generation • Root Cause Analysis: The package YAML is missing the required SPDX license identifier in the copyright section, causing the build system to default to NOASSERTION • Suggested Fix: copyright:
- license: Ruby
spdx-license-identifier: Ruby • Explanation:
• Additional Notes:
• References:
|
Gen AI suggestions to solve the build error: Based on the build log, I'll analyze the error and provide a solution: • Detected Error: "no license specified, defaulting to NOASSERTION" • Error Category: Configuration • Failure Point: SBOM generation/package linting stage • Root Cause Analysis: • Suggested Fix: copyright:
- licenses:
- Ruby
- BSD-2-Clause • Explanation:
• Additional Notes:
• References:
|
Gen AI suggestions to solve the build error: • Detected Error: At first glance, there doesn't appear to be an explicit error in the build output. However, there is a warning: "SPDXRef-Package-ruby3.4-racc-1.8.1-0: no license specified, defaulting to NOASSERTION" • Error Category: Configuration • Failure Point: License specification in package metadata • Root Cause Analysis: The package YAML is missing proper license specification despite having "license: Ruby" in the copyright section. The build system is not correctly interpreting this license declaration. • Suggested Fix: package:
name: ruby3.4-racc
version: 1.8.1
epoch: 0
description: "A LALR(1) parser generator written in Ruby"
copyright:
- license: Ruby
license-file: COPYING
spdx-license: Ruby • Explanation:
• Additional Notes:
• References:
|
Gen AI suggestions to solve the build error: Based on the build log, I'll analyze the error and provide a solution. • Detected Error: • Error Category: Configuration • Failure Point: Package linting phase during SBOM generation • Root Cause Analysis: The package definition is missing the required SPDX license identifier in the copyright section, despite having the "license: Ruby" specified. • Suggested Fix: copyright:
- license: Ruby OR BSD-2-Clause
spdx-id: Ruby OR BSD-2-Clause • Explanation:
• Additional Notes:
• References:
|
Gen AI suggestions to solve the build error: • Detected Error: "request failed" • Suggested Fix:
environment:
contents:
repositories:
- https://packages.wolfi.dev/os
keyring:
- https://packages.wolfi.dev/os/wolfi-signing.rsa.pub • Explanation: • Additional Notes:
package:
license: Ruby • References:
The package itself builds correctly once the repository issue is resolved, as evidenced by the successful compilation and installation of the Ruby gem. The main issue is with the initial repository configuration rather than the package definition itself. |
Gen AI suggestions to solve the build error: • Detected Error: No explicit error message is shown in the build output. The build appears to complete successfully but may be failing pre-submit checks. • Error Category: Configuration • Failure Point: Package metadata configuration • Root Cause Analysis: Looking at the linter output, there's a warning about missing license specification: • Suggested Fix: package:
name: ruby3.4-racc
version: 1.8.1
epoch: 0
copyright:
- license: Ruby
- licenses: ["Ruby", "BSD-2-Clause"] # Add this line with correct SPDX identifiers • Explanation: • Additional Notes:
• References:
|
Gen AI suggestions to solve the build error: Based on the build output, I don't actually see a build error - the build appears to have completed successfully. The package was built and an APK was generated successfully at the end. Let's break down what happened: • Detected Error: None - the build completed successfully with package ruby3.4-racc-1.8.1-r0.apk being created • Build Steps Completed:
• Package Details:
• Additional Notes:
If you're seeing a CI failure, it may be coming from a different part of the pipeline since the melange build itself appears successful. Could you share the specific CI failure message you're seeing? References:
|
Gen AI suggestions to solve the build error: • Detected Error: While there's no explicit error shown in the build output, the linter warning indicates a missing license specification: • Error Category: Configuration • Failure Point: Package metadata validation during the build process • Root Cause Analysis: The package.yaml is missing proper license specification despite having a • Suggested Fix: package:
name: ruby3.4-racc
version: 1.8.1
epoch: 0
description: "A LALR(1) parser generator written in Ruby"
copyright:
- license: Ruby OR BSD-2-Clause
spdx-id: Ruby OR BSD-2-Clause • Explanation:
• Additional Notes:
• References:
|
Gen AI suggestions to solve the build error: Based on the build log, I'll analyze the failure and provide a solution: • Detected Error: "SPDXRef-Package-ruby3.4-racc-1.8.1-0: no license specified, defaulting to NOASSERTION" • Error Category: Configuration • Failure Point: Package linting stage, specifically license verification • Root Cause Analysis: The package configuration is missing the required SPDX license identifier in the copyright section, despite having a "license: Ruby" entry. • Suggested Fix: copyright:
- license: Ruby
spdx-id: Ruby
paths:
- "*" • Explanation:
• Additional Notes:
• References:
The fix ensures proper license tracking while maintaining the intended Ruby license declaration. |
Gen AI suggestions to solve the build error: • Detected Error: While there's no explicit error in the build output, there appears to be a missing license specification issue as indicated by: "SPDXRef-Package-ruby3.4-racc-1.8.1-0: no license specified, defaulting to NOASSERTION" • Error Category: Configuration • Failure Point: Package metadata validation during SBOM generation • Root Cause Analysis: The package.yaml is missing proper license specification despite having "license: Ruby" in the copyright section. The build system requires a more specific SPDX license identifier. • Suggested Fix: copyright:
- license: Ruby OR BSD-2-Clause • Explanation:
• Additional Notes:
• References:
|
Gen AI suggestions to solve the build error: Based on the build log, I don't actually see a failure - the build appears to have completed successfully. The package was built and an APK was generated without errors. However, I'll analyze the key parts to ensure everything is working as expected: • Detected Error: None (build completed successfully)
• Suggested Fix: No fix needed as the build succeeded. However, there is one minor improvement that could be made: Add the license field to the package definition to avoid the warning: package:
name: ruby3.4-racc
version: 1.8.1
epoch: 0
copyright:
- license: Ruby
license: Ruby # Add this line • Explanation: The only warning in the log was about missing license specification. Adding the license field will remove the warning "SPDXRef-Package-ruby3.4-racc-1.8.1-0: no license specified, defaulting to NOASSERTION" • Additional Notes:
• References:
If you're seeing a different error that wasn't shown in the provided log, please share that specific error message. |
Gen AI suggestions to solve the build error: Based on the build log, I'll analyze the error and provide a solution: • Detected Error: • Error Category: Configuration • Failure Point: SBOM generation step during package creation • Root Cause Analysis: The package configuration is missing the required license SPDX identifier in the package metadata. While the package has a Ruby license (as noted in the package section), it needs to be specified using the proper SPDX identifier format. • Suggested Fix: package:
name: ruby3.4-racc
version: 1.8.1
epoch: 0
copyright:
- license: Ruby
- spans:
- type: s
start: 0
end: 0
license: Ruby OR BSD-2-Clause • Explanation:
• Additional Notes:
• References:
|
5b2f887
to
50c92f5
Compare
Huh I can deal with the package update config stuff easily but I don't understand why the build failed. It says:
But bundler did build and locally I seem to be building fine.. though I also thought I'd built the previous ones locally without issues. |
superseded by : #36199 |
Add ruby 3.4 bootstrap that has all of the default and bundled gems so that we can build ruby 3.4 and the same bundled and default gems ourselves. I have not split out all of them here yet. I focused on the gems that we'd already separately packaged and dependencies to build those gems.
Also add a meta package to make it easy to install the set of standard gems people would expect.
The standard gems do change between releases so unfortunately we can't use the same meta package for all of our ruby versions.