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

ci(PPDSC-2084): Updating circleci/slack and bringing back all messages on failures #250

Merged
merged 23 commits into from
Jul 5, 2022

Conversation

Vanals
Copy link
Contributor

@Vanals Vanals commented Jul 1, 2022

PPDSC-2084

What

  • Updated circleci/slack orb version and its config object

  • Now it supports failing messages on workflows triggered by tags. As happens for our release workflows.

  • Created new Slack Application as suggested by the orb

...
Please note, Webhooks are no longer used for the Slack Orb (v4 +).
Follow the setup guide available in the wiki: https://github.com/CircleCI-Public/slack-orb/wiki/Setup
...

I followed the guide, created a new slack application, and installed it in the Workspace. Then invited the app in our channel.

In order to work the circleci/slack needs an auth_token. I have added the slack auth token in all the circleci contexts we use.
infact different jobs uses different contexts.

I have added the SLACK_ACCESS_TOKEN in:

ncu-newskit-site-pr
ncu-newskit-site-stage
ncu-newskit-site-prod
ncu-newskit-site-dev
ncu-product-platforms-context

It was available in the App slack page. I have created the app. Not sure everyone can access to the settings? we can see how to extend that potentially.

Still complains about a webhook, but not sure how/ if we should get rid of it and might create issues for other teams?

Screenshot 2022-07-04 at 11 15 05

I have done:

  • Written unit tests against changes
  • Written functional tests against the component and/or NewsKit site
  • Updated relevant documentation

I have tested manually:

  • The feature's functionality is working as expected on Chrome, Firefox, Safari and Edge
  • The screen reader reads and flows through the elements as expected.
  • There are no new errors in the browser console coming from this PR.
  • When visual test is not added, it renders correctly on different browsers and mobile viewports (Safari, Firefox, small mobile viewport, tablet)
  • The Playground feature is working as expected

Before:

After:

Who should review this PR:

How to test:

@Vanals Vanals requested review from jps, Xin00163 and pdimova as code owners July 1, 2022 09:30
@Vanals Vanals added the WIP Work in progress label Jul 1, 2022
@Vanals Vanals added ready for review Please assist in getting this reviewed and removed WIP Work in progress labels Jul 4, 2022
tbradbury
tbradbury previously approved these changes Jul 4, 2022
@Vanals Vanals changed the title ci(PPDSC-2084): trying to test new config ci(PPDSC-2084): Updating circleci/slack and bringing back all messages on failures Jul 4, 2022
evgenitsn
evgenitsn previously approved these changes Jul 4, 2022
tbradbury
tbradbury previously approved these changes Jul 4, 2022
@Vanals Vanals dismissed stale reviews from tbradbury and evgenitsn via 69719aa July 4, 2022 14:18
@Vanals Vanals requested a review from tbradbury July 5, 2022 08:03
@Vanals Vanals merged commit 481040a into main Jul 5, 2022
@Vanals Vanals deleted the ci/PPDSC-2084-enable-back-slack-messages-on-release branch July 5, 2022 10:48
Xin00163 pushed a commit that referenced this pull request Oct 17, 2022
…s on failures (#250)

* ci(PPDSC-2084): trying to test new config

* ci(PPDSC-2084): using right command

* ci(PPDSC-2084): adding slack notify

* ci(PPDSC-2084): fixing indentation

* ci(PPDSC-2084): fixing branch pattern

* ci(PPDSC-2084): passing context with auth token to job

* ci(PPDSC-2084): adding workflow triggered by tag

* ci(PPDSC-2084): passing context to job

* ci(PPDSC-2084): test failing branch

* ci(PPDSC-2084): testing multu tag slack allert

* ci(PPDSC-2084): testing new tag_pattern

* ci(PPDSC-2084): hopefully fixing tag pattern

* ci(PPDSC-2084): removed testing code

* ci(PPDSC-2084): updated message

* ci(PPDSC-2084): trst custom template

* ci(PPDSC-2084): add column in jib

* ci(PPDSC-2084): add missing column

* ci(PPDSC-2084): testing

* ci(PPDSC-2084): remove test code finalize template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review Please assist in getting this reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants