@@ -27,8 +27,8 @@ var railsReleaseTagRegex = regexp.MustCompile(`^v(?P<major>\d+)\.(?P<minor>\d+)\
2727
2828// WARNING: DO NOT MODIFY the name of the below constant/variable without approval from the docs team.
2929// This is used by docs automation to produce a list of supported versions for ORM's.
30- var supportedRailsVersion = "7.2.1 "
31- var activerecordAdapterVersion = "v7.2 .0"
30+ var supportedRailsVersion = "8.1.0 "
31+ var activerecordAdapterVersion = "v8.1 .0"
3232
3333// This test runs activerecord's full test suite against a single cockroach node.
3434
@@ -172,7 +172,18 @@ func registerActiveRecord(r registry.Registry) {
172172
173173 t .Status ("running activerecord test suite" )
174174
175+ // Enable autocommit before DDL by default within the test suite.
175176 result , err := c .RunWithDetailsSingleNode (ctx , t .L (), option .WithNodes (node ),
177+ `cd /mnt/data1/activerecord-cockroachdb-adapter/ && ` +
178+ `sudo sed -i 's/autocommit_before_ddl: false/autocommit_before_ddl: true/g' test/config.yml` ,
179+ )
180+ // Fatal for a roachprod or transient error. A roachprod error is when result.Err==nil.
181+ // Proceed for any other (command) errors
182+ if err != nil && (result .Err == nil || rperrors .IsTransient (err )) {
183+ t .Fatal (err )
184+ }
185+
186+ result , err = c .RunWithDetailsSingleNode (ctx , t .L (), option .WithNodes (node ),
176187 fmt .Sprintf (
177188 `cd /mnt/data1/activerecord-cockroachdb-adapter/ && ` +
178189 `sudo RAILS_VERSION=%s RUBYOPT="-W0" TESTOPTS="-v" bundle exec rake test` , supportedRailsVersion ),
0 commit comments