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

ServiceNow CMR integration #3392

Open
wants to merge 44 commits into
base: stage
Choose a base branch
from

Conversation

amauch-adobe
Copy link
Contributor

  • Adds actions workflow for creating an automated CMR in ServiceNow. This replaces the outdated SKMS system.
  • Workflow Yaml executes a python script named servicenow.py

Resolves: MWPW-156500

Test URLs:

added servicenow CMR template for github actions
updated template to remove skms and swap it with ServiceNow
started adding servicenow api calls
added the servicenow cmr calls.
test branch added
removed skms.yml where we are using servicenow
updated function calls and parameters
test update
Updated calls to output to file and check output for successful curl calls.  Fixes jq parsing command.
testing output
fixed github env variable declarations for token, cmr_id, transaction_id, release_title
added output to console for response from curl
fixed file existence and size check
small update
fixed curl statements and timestamps
another small update
testing
testing theory
testing arguments
second attempt
updated branch to remove caching from GitHub Actions, hopefully.
reverted changes of new branch
another small fix
testing a thought
moved release summary to last param where it stops other parameters from being read.
testing out semantics for env variables
updated shell commands to fix errors
small github env fixes
updated curl statement
updated calls and timespans
added new python scripts and removed shell script
added sanitization method
updated servicenow integration to use python
updated variables and added headers
fixed cmr_id parsing and cmr closing
added small test change for PR
fixing environment variable access
@amauch-adobe
Copy link
Contributor Author

  • Please note python JSON libraries, which are called and used in the requests POST payload handles escaping special characters and/or quotes. I have tested this out in my own fork here. Which you can view here in ServiceNow's Staging environment.

Copy link
Contributor

aem-code-sync bot commented Dec 18, 2024

Page Scores Audits Google
📱 /?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ /?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.48%. Comparing base (c5e352f) to head (4c01c2a).
Report is 317 commits behind head on stage.

Additional details and impacted files
@@            Coverage Diff             @@
##            stage    #3392      +/-   ##
==========================================
- Coverage   98.21%   96.48%   -1.74%     
==========================================
  Files          64      254     +190     
  Lines        7848    59031   +51183     
==========================================
+ Hits         7708    56955   +49247     
- Misses        140     2076    +1936     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

fixed branches in yaml
Copy link
Contributor

@mokimo mokimo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely, thanks for ensuring we are covered from a CMR perspective

updated approvers, removed executor so that the default "Change Management API Integration" user is used instead.
changed stage variables, urls to prod
Copy link
Contributor

This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR.

Copy link
Contributor

This PR has not been updated recently and will be closed in 7 days if no action is taken. Please ensure all checks are passing, https://github.com/orgs/adobecom/discussions/997 provides instructions. If the PR is ready to be merged, please mark it with the "Ready for Stage" label.

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

Successfully merging this pull request may close these issues.

5 participants