avamingli opened a new issue, #1592:
URL: https://github.com/apache/cloudberry/issues/1592

   ### Apache Cloudberry version
   
   Main branch — introduced by commit 4af1cf5a09bcf5f199e4135db14bb6123987c102 
("Movable DataBase Locales for Cloudberry", merged Feb 4 2026).
   
   
   ### What happened
   
     After running any regression test suite, git status shows 
src/test/regress/sql/misc.sql as modified (M):
   
     Changes not staged for commit:
         modified:   src/test/regress/sql/misc.sql
   
     The diff reveals that all @abs_builddir@ placeholders have been replaced 
with hardcoded absolute paths:
   
     -COPY onek TO '@abs_builddir@/results/onek.data';
     +COPY onek TO '/home/<user>/work/gp95/src/test/regress/results/onek.data';
   
   ### What you think should happen instead
   
   src/test/regress/sql/misc.sql should not be tracked by git. It is a 
generated file — the test infrastructure reads
   src/test/regress/input/misc.source and writes the substituted result to 
sql/misc.sql at test runtime.
   
   Specifically, pg_regress.c calls:
     convert_sourcefiles_in("input", outputdir, "sql", "sql");
     which replaces @abs_builddir@ with the actual build path and writes into 
outputdir/sql/misc.sql — overwriting the committed version on every test run.
   
   This relationship is also documented in GNUmakefile: # Line 113: maps 
input/*.source → sql/*.sql (generated)
    input_files = `$(patsubst $(srcdir)/input/%.source,sql/%.sql, $(wildcard 
$(srcdir)/input/*.source))`
   
   Prior to commit 4af1cf5a09b, sql/misc.sql was absent from git (correctly — 
it was purely generated). That commit accidentally added it.
   
   
   ### How to reproduce
   
   Run any regression test that triggers misc
   
   
   
   ### Operating System
   
   Ubuntu 22.04
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes, I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/cloudberry/blob/main/CODE_OF_CONDUCT.md).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to