stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

ci: add validation step for generated pkg-config files

Open srinjoy933 opened this issue 8 months ago • 5 comments

This pull request introduces an automated validation step within the CMake CI workflow (.github/workflows/CI.yml) to ensure the structural integrity of generated pkg-config exports. Building on recent fixes for absolute pathing in .pc files, this addition prevents future regressions by strictly testing the generated fortran_stdlib.pc file immediately following the cmake --install step. The workflow now ensures pkg-config is present on the runner, maps the PKG_CONFIG_PATH to the local _dist installation directory, and executes both a strict --validate check and a test of the --cflags and --libs flag resolution. Solve #1149

srinjoy933 avatar Mar 20 '26 14:03 srinjoy933

@jalvesz @jvdp1 please have a look on this pr, and kindly suggest if any changes are required for this pr. Waiting for your feedback. Thank you.

srinjoy933 avatar Mar 20 '26 14:03 srinjoy933

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 68.85%. Comparing base (72698fd) to head (3a227d6). :warning: Report is 28 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1150      +/-   ##
==========================================
+ Coverage   68.66%   68.85%   +0.19%     
==========================================
  Files         408      408              
  Lines       13619    13735     +116     
  Branches     1537     1555      +18     
==========================================
+ Hits         9351     9457     +106     
- Misses       4268     4278      +10     

:umbrella: View full report in Codecov by Harness.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

codecov[bot] avatar Mar 22 '26 16:03 codecov[bot]

@jvdp1 I have made the changes according to your suggestion .Please have a look at this now, if it is ok or not.

srinjoy933 avatar Mar 23 '26 11:03 srinjoy933

hey @jvdp1 as you have suggested I reverted the parallelization feature and will create another pr to solve the test problem. Please review this pr once . Thanks!

srinjoy933 avatar Apr 04 '26 14:04 srinjoy933

hey @jvdp1, any more changes that you want for this pr or is this good to go to be merged?

srinjoy933 avatar Apr 21 '26 07:04 srinjoy933