Automate a process to detect linker errors in GHA #2295
Labels
alert: NEED ACCOUNT KEY
Need to assign an account key to this issue
component: build process
Build process issue
component: testing
Software testing issue
priority: medium
Medium Priority
requestor: METplus Team
METplus Development Team
type: task
An actionable item of work
Milestone
Describe the Task
This issue arose from MET Issue: Create test to replicate MET-11.0.0-beta3 linker errors and fix them #2281. While we were able to use "--as-needed" in LDFLAGS:
for replicating the linker error on seneca, automating this process has proven to be more difficult.
The branch feature_2281_linker_actions was set up to test, with the linker errors in place before they were fixed in the branch feature_2281_linker.
Using a few docker images (gcc:9.5.0, gcc:10-buster, gcc:10.4-buster) to test with, all produced the same error:
Helpful command:
Julie was unable to upgrade the version of libstdc++.so.6, despite seeing that it should be available.
Adding "-static-libstdc++" to CFLAGS and LDFLAGS in the internal/scripts/environment/development.docker file seemed to eliminate the GLIBCXX_3.4.26 problem above, but also seemed to invalidate "--as-needed" as the compilation was successful, but the compilation was expected to fail due to linker problems.
Using the docker image for gcc:11-bullseye seemed to eliminate this problem, but there was an issue with pip3/pip being available for Python 3.9, which stopped the testing to move on to other higher priority items.
When time allows, continuing trying to add this functionality to our automate testing.
Time Estimate
1-3 days of work
Sub-Issues
Consider breaking the task down into sub-issues.
Relevant Deadlines
NONE
Funding Source
TBD
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
Task Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
Select: Reviewer(s) and Linked issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
The text was updated successfully, but these errors were encountered: