The default maximum length of the file path for a build artifact on
Krogoth Toaster is 100 characters (Django default for FilePathField).
This value makes it impossible to download build artifacts because
default file paths are quite long and therefore are being truncated
by Toaster.

Example of a long file path which does not work on my machine:
/var/www/toaster/poky/build-toaster-2/tmp/deploy/sdk/poky-glibc-x86_64-core-image-sato-cortexa8hf-neon-toolchain-2.1.1.sh

To fix this problem i increased the size of 'file_name' column
of the corresponding MySQL table to 255 characters.

[krogoth]

Signed-off-by: [email protected]
---
 bitbake/lib/toaster/orm/migrations/0001_initial.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bitbake/lib/toaster/orm/migrations/0001_initial.py 
b/bitbake/lib/toaster/orm/migrations/0001_initial.py
index 760462f..0c780a9 100644
--- a/bitbake/lib/toaster/orm/migrations/0001_initial.py
+++ b/bitbake/lib/toaster/orm/migrations/0001_initial.py
@@ -52,7 +52,7 @@ class Migration(migrations.Migration):
             name='BuildArtifact',
             fields=[
                 ('id', models.AutoField(verbose_name='ID', serialize=False, 
auto_created=True, primary_key=True)),
-                ('file_name', models.FilePathField()),
+                ('file_name', models.FilePathField(max_length=255)),
                 ('file_size', models.IntegerField()),
                 ('build', models.ForeignKey(to='orm.Build')),
             ],
-- 
2.9.3

-- 
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Reply via email to