# squash-api HTTP 400 -- ci_label field may be too small

XMLWordPrintable

#### Details

• Type: Story
• Status: Done
• Resolution: Done
• Fix Version/s: None
• Component/s:
• Labels:
None
• Team:
SQuaRE

#### Description

(copied from DM-12510)

It looks like squash isn't accepting the results:

 "https://github.com/lsst/lsst_ci.git"}], "date": "2017-11-16T16:55:57.130106+00:00", "ci_id": "b3217", "ci_name": "validate_drp", "ci_dataset": "cfht", "ci_label": "docker.io/lsstsqre/centos:7-stack-lsst_distrib-d_2017_11_16", "ci_url": "https://ci.lsst.codes/job/sqre/job/validate_drp/1126/", "status": 0} 400 Client Error: BAD REQUEST for url: ****jobs/ script returned exit code 1 

From looking at the source, I'm guessing we're banging into a 16 char limit of the ci_label field. Previously, this was being set to the jenkins node label the sub-configuration was running, which was always centis-7. As part of the rewrite, I'm not setting this to the registry url of the docker image (eg., ocker.io/lsstsqre/centos:7-stack-lsst_distrib-d_2017_11_16).
Ihttps://github.com/lsst-sqre/squash-api/blob/master/squash/api/models.py#L18-L19

#### Activity

Hide
Joshua Hoblitt added a comment -

Is there an ETA on changing the schema?

Show
Joshua Hoblitt added a comment - Is there an ETA on changing the schema?
Hide
Angelo Fausti added a comment -

We reimplemented the SQuaSH RESTful API in the mean time, so this ticket can be closed.

In the current implementation, all information related to the environment goes into a JSON data type field in the Job table, so there's no size limit for the environment information sent to SQuaSH anymore.

Show
Angelo Fausti added a comment - We reimplemented the SQuaSH RESTful API in the mean time, so this ticket can be closed. In the current implementation, all information related to the environment goes into a JSON data type field in the Job table, so there's no size limit for the environment information sent to SQuaSH anymore. See https://sqr-009.lsst.io/#the-qc-tier-0-database

#### People

Assignee:
Angelo Fausti
Reporter:
Joshua Hoblitt
Watchers:
Angelo Fausti, Joshua Hoblitt, Simon Krughoff