[
https://issues.apache.org/jira/browse/CASSANDRA-18033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17631917#comment-17631917
]
Ekaterina Dimitrova commented on CASSANDRA-18033:
-------------------------------------------------
Yes, plus in order not to get those hunk warnings you can recreate the patches
using this recipe from [~adelapena]:
{code:java}
# apply old patches (with hunk messages)
patch -o config-2_1.yml.MIDRES config-2_1.yml config-2_1.yml.mid_res.patch
patch -o config-2_1.yml.HIGHRES config-2_1.yml config-2_1.yml.high_res.patch
# generate new patches
diff -u config-2_1.yml config-2_1.yml.HIGHRES > config-2_1.yml.high_res.patch
diff -u config-2_1.yml config-2_1.yml.MIDRES > config-2_1.yml.mid_res.patch
# verify that the new patches generate the same files and cleanup
./generate.sh -a
{code}
But first verify whether the old patches applied are still applicable and they
do not make any shifts in the new MIDRES and HIGHRES files. Then you will need
to recreate the patches
> generate.sh -a creates a corrupted yaml file
> --------------------------------------------
>
> Key: CASSANDRA-18033
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18033
> Project: Cassandra
> Issue Type: Bug
> Components: CI
> Reporter: David Capwell
> Priority: Normal
>
> Tried adding a new build (j11 simulator) and generate.sh -a is success, but
> it corrupts the yaml with garbage
> {code}
> $ ./generate.sh -a
> Generating new config.yml file with low resources and LOWRES/MIDRES/HIGHRES
> templates from config-2_1.yml
> patching file ./config-2_1.yml
> Hunk #4 succeeded at 1520 (offset 18 lines).
> Hunk #5 succeeded at 1534 (offset 18 lines).
> Hunk #6 succeeded at 1549 (offset 18 lines).
> Hunk #7 succeeded at 1563 (offset 18 lines).
> Hunk #8 succeeded at 1578 (offset 18 lines).
> Hunk #9 succeeded at 1592 (offset 18 lines).
> Hunk #10 succeeded at 1607 (offset 18 lines).
> Hunk #11 succeeded at 1625 (offset 18 lines).
> Hunk #12 succeeded at 1640 (offset 18 lines).
> Hunk #13 succeeded at 1658 (offset 18 lines).
> Hunk #14 succeeded at 1673 (offset 18 lines).
> Hunk #15 succeeded at 1691 (offset 18 lines).
> Hunk #16 succeeded at 1706 (offset 18 lines).
> patching file ./config-2_1.yml
> {code}
> {code}
> $ head -n 20 .circleci/config.yml.HIGHRES | grep -v '^#'
> Error checking for updates: failed to check for updates. `brew outdated
> --json=v2` returned an error: exit status 1
> Please contact support.
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]