Don't mind me, this is just a helper issue to run testbot without clobbering #1040790: _field_info_collate_fields() memory usage.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yched’s picture

FileSize
14.43 KB

Gah.

Status: Needs review » Needs work

The last submitted patch, field_info_cache-test.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
22.24 KB

Really ?

Status: Needs review » Needs work

The last submitted patch, field_info_cache-test-2.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
20.59 KB

Status: Needs review » Needs work

The last submitted patch, field_info_cache-1305362-5.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
20.27 KB

Status: Needs review » Needs work

The last submitted patch, field_info_cache-1305362-7.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
20.19 KB

Status: Needs review » Needs work

The last submitted patch, field_info_cache-1305362-9.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
20.25 KB

Status: Needs review » Needs work

The last submitted patch, field_info_cache-1305362-11.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
20.25 KB

Status: Needs review » Needs work

The last submitted patch, field_info_cache-1305362-13.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
28.31 KB

Status: Needs review » Needs work

The last submitted patch, field_info_cache-1305362-15.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
28.36 KB

Status: Needs review » Needs work

The last submitted patch, field_info_cache-1305362-17.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
28.3 KB

That one should be green.

yched’s picture

Let's start refactoring, then.

andypost’s picture

Do we need tests for this?

yched’s picture

The values returned by the various field_info_*() functions are used all over the place and are thus fairly extensively tested, as the # of fails / exceptions above show.

Tests for the caching behavior (static cache in the FieldInfoFieldCache properties and persistent cache in the cache_field table) could probably be useful though.

yched’s picture

Status: Needs review » Fixed

Closing, back to the parent issue.

yched’s picture

Status: Fixed » Needs review
FileSize
43.29 KB

Crap, failures are back. Reopening the testing playground.

Status: Needs review » Needs work

The last submitted patch, field_info_cache-1305362-24.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
43.3 KB
yched’s picture

Refactoring.

Status: Needs review » Needs work

The last submitted patch, field_info_cache-1305362-27.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
43.82 KB

Status: Needs review » Needs work

The last submitted patch, field_info_cache-1305362-29.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
45.13 KB

Status: Needs review » Needs work

The last submitted patch, field_info_cache-1305362-31.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
43.85 KB
yched’s picture

More refactoring

yched’s picture

Some more refactoring.

yched’s picture

FileSize
47.55 KB

Just trying out how the DIC plays with testbot right now.

Status: Needs review » Needs work

The last submitted patch, field-info-dic.patch, failed testing.

yched’s picture

Version: 8.x-dev » 7.x-dev
Status: Needs work » Needs review
FileSize
46.94 KB

D7 backport ?

Status: Needs review » Needs work

The last submitted patch, field-info-cache-1040790-89-D7.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
46.84 KB

Status: Needs review » Needs work

The last submitted patch, field-info-cache-1040790-89-D7-2.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
46.8 KB

Status: Needs review » Needs work

The last submitted patch, field-info-cache-1040790-89-D7-3.patch, failed testing.

geerlingguy’s picture

Is the testbot having some troubles tonight?

geerlingguy’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, field-info-cache-1040790-89-D7-3.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
46.83 KB
jthorson’s picture

Looks like #45 either ran into or caused a cron issue on the testbot ... got an 'attempt to start review when already running', followed by an hour of 'attempting to re-run cron while it is already running' watchdog logs; suggesting that the cron process hung for the duration of that test.

yched’s picture

@jthorson: sorry about that. #45 was an attempt at a D7 backport of #1040790: _field_info_collate_fields() memory usage. The problem was an improper conversion between D8 and D7's cache APIs. the patch contained cache_[get|set|clear_all]() calls with $bin = 'field' instead of 'cache_field'.

Not sure why that would lead to the effects you mentioned, but the patch is fixed now, won't happen again :-).

swentel’s picture

Status: Needs review » Closed (fixed)

Let's close this one.

yched’s picture

Status: Closed (fixed) » Needs review
FileSize
58.95 KB

Rebooting work on the D7 backport of #1040790: _field_info_collate_fields() memory usage. Let's see how this behaves.

geerlingguy’s picture

(Just fyi, I don't use this particular patch on the production site anymore, as we've necessarily had to switch to a different solution outside the Entity/Field API for our profile system—we passed 600 entity types and 20,000 field instances, and Drupal was killing itself on cache rebuilds—with or without this patch).

I'll still help review the patch as best I can, of course, but I won't be able to test on such an outrageous installation :)

Status: Needs review » Needs work

The last submitted patch, field-info-cache-1040790-196-D7.patch, failed testing.

yched’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, field-info-cache-1040790-196-D7.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
59.18 KB
yched’s picture

Status: Needs review » Needs work

The last submitted patch, field-info-cache-1040790-196-D7.patch, failed testing.