Ticket #130 (closed task: fixed)

Opened 4 years ago

Last modified 4 years ago

ResultsDB: getting autotest test-ID on the client

Reported by: jskladan Owned by: jskladan
Priority: major Milestone: Resultdb
Component: tests Keywords:
Cc: wwoods Blocked By:
Blocking:

Description

According to the information from lmr@… <https://fedorahosted.org/pipermail/autoqa-devel/2010-March/000326.html> it should be possible to get the test ID from some variable, while creating the control file.

Install testing autotest-autoqa environment and give it a try.

Change History

comment:1 Changed 4 years ago by jskladan

  • Status changed from new to assigned

comment:2 follow-up: ↓ 3 Changed 4 years ago by jskladan

I just tested the approach suggested by lmr, and it it is working like charm - all one needs to do is adding new parameter to the job.run_test() call inside control file, e.g.:

job.run_test('initscripts', name=name, envr=envr, kojitag=kojitag, config=autoqa_conf, job_tag = job.tag)

And then of course consume it inside the test itself:

def run_once(self, envr, name, kojitag, job_tag):

f = open(os.path.join(self.resultsdir, "JOB_TAG.readme"), 'w') f.write( job_tag) f.close()

We should consider changing all the tests so they can take advantage of this, so i keep this ticket open.

comment:3 in reply to: ↑ 2 ; follow-up: ↓ 4 Changed 4 years ago by jlaska

Replying to jskladan:

I just tested the approach suggested by lmr, and it it is working like charm - all one needs to do is adding new parameter to the job.run_test() call inside control file, e.g.:

job.run_test('initscripts', name=name, envr=envr, kojitag=kojitag, config=autoqa_conf, job_tag = job.tag)

And then of course consume it inside the test itself:

def run_once(self, envr, name, kojitag, job_tag):

f = open(os.path.join(self.resultsdir, "JOB_TAG.readme"), 'w') f.write( job_tag) f.close()

We should consider changing all the tests so they can take advantage of this, so i keep this ticket open.

The purpose for the job_tag is to provide a link back to the detailed test results, right? Since we are using email as our interim results reporting format, can we include the results URL (generated from the job_tag) in the results emails sent to autoqa-devel?

Longer term, I suspect this will be needed by the report_results() method. For providing a link to detailed results when sending the summary to the resultsdb.

comment:4 in reply to: ↑ 3 Changed 4 years ago by jskladan

Replying to jlaska:

The purpose for the job_tag is to provide a link back to the detailed test results, right?

Yes, that is right. job_tag is the 3-jskladan/F12AutoQA part from the whole URL http://10.34.30.103/results/3-jskladan/F12AutoQA/initscripts/results/

comment:5 Changed 4 years ago by jskladan

  • Resolution set to fixed
  • Status changed from assigned to closed

fixed in http://git.fedorahosted.org/git/?p=autoqa.git;a=commit;h=fd7cd6d2a9bfb476ce2f413cc5188c918b0265bb and should be present in the next jlaska's build. Closing.

Note: See TracTickets for help on using tickets.