Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send also workflows as part of unified jobs into analytics #6201

Closed
Ladas opened this issue Mar 6, 2020 · 13 comments
Closed

Send also workflows as part of unified jobs into analytics #6201

Ladas opened this issue Mar 6, 2020 · 13 comments

Comments

@Ladas
Copy link
Contributor

Ladas commented Mar 6, 2020

ISSUE TYPE
  • Bug Report
SUMMARY

Workflows are not being sent to analytics (nor other types, e.g. workflow approvals)

Workflows do not have a record in main_job, therefore the JOIN
was ignoring those. We need to do LEFT JOIN to include also
workflows.

ENVIRONMENT
  • AWX version: all
STEPS TO REPRODUCE

Send payload to analytics

EXPECTED RESULTS

Workflows and approvals should be part of unified_jobs.csv

ACTUAL RESULTS

Workflows and approvals are not part of the unified_jobs.csv

@Ladas
Copy link
Contributor Author

Ladas commented Mar 6, 2020

Fixed by:
#6176 (sending workflows as part of unified jobs)
#6204 (sending workflow nodes as separate .csv)

@Ladas
Copy link
Contributor Author

Ladas commented Mar 6, 2020

cc @rooftopcellist

@ryanpetrello
Copy link
Contributor

@Ladas I just want to confirm - you've merged everything you need here, right?

@Ladas
Copy link
Contributor Author

Ladas commented Apr 15, 2020

yes, this issue should be fixed now

@kdelee kdelee self-assigned this Apr 20, 2020
@kdelee
Copy link
Member

kdelee commented Apr 20, 2020

Tested this manually and added coverage in our test suite. Calling verified and closing

edit: I tested that workflows and their spawned jobs end up in the unified jobs table csv....missed the part about the PR for the workflow nodes

@kdelee
Copy link
Member

kdelee commented Apr 21, 2020

woops, https://github.com/ansible/awx/pull/6204/files is not merged!

Workflows now show up in the unified_jobs_table csv file, but the workflow nodes stuff is not there.

@kdelee
Copy link
Member

kdelee commented Apr 21, 2020

@wenottingham @Ladas are you wanting #6204 to be covered by a different issue?

@wenottingham
Copy link
Contributor

No, we need both for this.

@kdelee
Copy link
Member

kdelee commented Apr 21, 2020

Linking #5931

@kdelee
Copy link
Member

kdelee commented Apr 21, 2020

I'm a bit confused. #6204 mentions #5931 but then this issue mentions #6204 .....will #5931 require more work in addition to #6204 ?

@wenottingham
Copy link
Contributor

#5931 requires #6204 and #6201. The PRs are related.

@Ladas
Copy link
Contributor Author

Ladas commented Apr 21, 2020

Sorry for confusion, so not sending workflows (their records from unified_jobs table) was a bug.

Then it's a separate feature to get all workflow data, which includes workflow nodes. :-o

@kdelee
Copy link
Member

kdelee commented Apr 22, 2020

Ok, everything is now working as expected. Adding some more test coverage downstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants