The GitHub Actions job "Groovy Snapshot Canary Build" on 
grails-core.git/feat/sql-tail-command has failed.
Run started by GitHub user jdaugherty (triggered by jdaugherty).

Head commit for run:
afaaabb58acb2a5021b98827b98586762cfc4c0a / James Daugherty 
<[email protected]>
Redact Spanner statements as GoogleSQL in sql-tail and read a truncated capture 
again

Cloud Spanner's dialect quotes identifiers with backticks, so its statements 
were redacted as
MySQL, which has no triple-quoted string: `select """a"example-secret"b"""` was 
captured as
`select ?example-secret?`, with part of the value. GoogleSQL is now a syntax of 
its own: single and
double quotes delimit strings, a string that opens with its quote written three 
times holds any
quote and ends at the next three, a backslash always escapes the character 
after it, a quote
written twice is two strings, backticks delimit identifiers, and # starts a 
comment. Hibernate 7's
Spanner dialect is redacted in it.

The inspectors no longer take every backtick-quoting dialect for MySQL: only 
MySQL's dialect and
its subclasses are, so a dialect Grails does not know, such as the Spanner 
dialect for Hibernate 5,
is read in every syntax, GoogleSQL among them, and a statement that 
triple-quotes a string, or
doubles a quote inside one, is withheld there.

The command's reader measured the capture and then read that much with 
readFully, so an
application that truncated the file in between ended the command with an 
EOFException. The reader
now reads what the file holds, and a read that comes up short, or finds the 
file gone, is a
restart: the new run is read from its start in the same poll.

Report URL: https://github.com/apache/grails-core/actions/runs/39840275001

With regards,
GitHub Actions via GitBox

Reply via email to