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

Unicorn pipe #17094

Merged
merged 14 commits into from
Dec 2, 2024
Merged

Unicorn pipe #17094

merged 14 commits into from
Dec 2, 2024

Conversation

robertaandersen
Copy link
Member

...

Attach a link to issue if relevant

What

Specify what you're trying to achieve

Why

Specify why you need to achieve this

Screenshots / Gifs

Attach Screenshots / Gifs to help reviewers understand the scope of the pull request

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Formatting passes locally with my changes
  • I have rebased against main before asking for a review

@robertaandersen robertaandersen requested a review from a team as a code owner December 2, 2024 08:06
Copy link
Contributor

coderabbitai bot commented Dec 2, 2024

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • main

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

codecov bot commented Dec 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 35.58%. Comparing base (7ffbbc9) to head (627df11).

Additional details and impacted files

Impacted file tree graph

@@                   Coverage Diff                   @@
##           feature/unicorn-app   #17094      +/-   ##
=======================================================
+ Coverage                35.53%   35.58%   +0.04%     
=======================================================
  Files                     6926     6937      +11     
  Lines                   146908   147239     +331     
  Branches                 41920    41972      +52     
=======================================================
+ Hits                     52208    52398     +190     
- Misses                   94700    94841     +141     
Flag Coverage Δ
air-discount-scheme-backend 47.89% <ø> (ø)
air-discount-scheme-web 0.00% <ø> (ø)
api 3.34% <ø> (ø)
api-catalogue-services 77.85% <ø> (ø)
api-domains-air-discount-scheme 37.12% <ø> (ø)
api-domains-assets 26.71% <ø> (ø)
api-domains-auth-admin 48.49% <ø> (ø)
api-domains-communications 39.58% <ø> (ø)
api-domains-criminal-record 47.60% <ø> (ø)
api-domains-driving-license 44.52% <ø> (ø)
api-domains-education 30.61% <ø> (ø)
api-domains-health-insurance 34.48% <ø> (ø)
api-domains-mortgage-certificate 34.77% <ø> (ø)
api-domains-payment-schedule 41.34% <ø> (ø)
application-api-files 62.14% <ø> (ø)
application-core 70.60% <ø> (+0.62%) ⬆️
application-system-api 38.75% <ø> (ø)
application-template-api-modules 27.79% <ø> (ø)
application-templates-accident-notification 28.97% <ø> (ø)
application-templates-car-recycling 3.12% <ø> (ø)
application-templates-criminal-record 25.86% <ø> (ø)
application-templates-driving-license 18.18% <ø> (ø)
application-templates-estate 12.16% <ø> (ø)
application-templates-example-payment 24.80% <ø> (ø)
application-templates-financial-aid 15.80% <ø> (ø)
application-templates-general-petition 23.09% <ø> (ø)
application-templates-inheritance-report 6.58% <ø> (ø)
application-templates-marriage-conditions 15.12% <ø> (ø)
application-templates-mortgage-certificate 43.27% <ø> (ø)
application-templates-parental-leave 29.81% <ø> (-0.12%) ⬇️
application-types 6.51% <ø> (ø)
application-ui-components 1.27% <ø> (ø)
application-ui-shell 20.17% <ø> (ø)
auth-admin-web 2.43% <ø> (ø)
auth-nest-tools 31.10% <ø> (ø)
auth-react 21.85% <ø> (ø)
auth-shared 75.00% <ø> (ø)
clients-charge-fjs-v2 24.11% <ø> (ø)
clients-driving-license 40.32% <ø> (ø)
clients-driving-license-book 43.53% <ø> (ø)
clients-financial-statements-inao 49.10% <ø> (ø)
clients-license-client 1.26% <ø> (ø)
clients-middlewares 72.66% <ø> (-0.34%) ⬇️
clients-regulations 42.40% <ø> (ø)
clients-rsk-company-registry 29.76% <ø> (ø)
clients-rsk-personal-tax-return 38.00% <ø> (ø)
clients-smartsolutions 12.77% <ø> (ø)
clients-syslumenn 49.25% <ø> (ø)
clients-zendesk 50.73% <ø> (+0.36%) ⬆️
cms 0.40% <ø> (ø)
cms-translations 38.91% <ø> (ø)
content-search-index-manager 95.65% <ø> (ø)
content-search-toolkit 8.14% <ø> (ø)
contentful-apps 4.74% <ø> (ø)
dokobit-signing 62.85% <ø> (+0.26%) ⬆️
email-service 60.65% <ø> (+0.24%) ⬆️
feature-flags 90.69% <ø> (+0.22%) ⬆️
file-storage 45.91% <ø> (+0.05%) ⬆️
financial-aid-backend 51.30% <ø> (ø)
financial-aid-shared 17.81% <ø> (ø)
icelandic-names-registry-backend 54.34% <ø> (ø)
infra-nest-server 48.37% <ø> (ø)
infra-tracing 43.24% <ø> (ø)
island-ui-core 28.88% <ø> (ø)
judicial-system-api 20.27% <ø> (ø)
judicial-system-audit-trail 68.94% <ø> (+0.24%) ⬆️
judicial-system-backend 55.59% <ø> (+0.51%) ⬆️
judicial-system-formatters 79.50% <ø> (+0.36%) ⬆️
judicial-system-message 67.12% <ø> (+0.25%) ⬆️
judicial-system-message-handler 48.17% <ø> (+0.36%) ⬆️
judicial-system-scheduler 71.00% <ø> (+0.52%) ⬆️
judicial-system-types 43.05% <ø> (-0.95%) ⬇️
judicial-system-web 27.45% <ø> (ø)
license-api 42.52% <ø> (-0.08%) ⬇️
localization 10.15% <ø> (ø)
logging 48.43% <ø> (ø)
message-queue 68.05% <ø> (+0.25%) ⬆️
nest-audit 68.20% <ø> (ø)
nest-aws 53.04% <ø> (-0.99%) ⬇️
nest-config 78.07% <ø> (+0.19%) ⬆️
nest-core 43.54% <ø> (ø)
nest-feature-flags 51.15% <ø> (ø)
nest-problem 45.82% <ø> (ø)
nest-sequelize 94.44% <ø> (ø)
nest-swagger 51.71% <ø> (ø)
nova-sms 62.18% <ø> (+0.28%) ⬆️
portals-admin-regulations-admin 1.81% <ø> (ø)
portals-core 15.90% <ø> (ø)
regulations 16.78% <ø> (ø)
residence-history 85.00% <ø> (ø)
services-auth-admin-api 52.56% <ø> (+0.08%) ⬆️
services-auth-delegation-api 58.47% <ø> (+0.25%) ⬆️
services-auth-ids-api 52.29% <ø> (+0.20%) ⬆️
services-auth-public-api 49.25% <ø> (-0.34%) ⬇️
services-sessions 65.52% <ø> (+0.10%) ⬆️
services-university-gateway 49.24% <ø> (+0.16%) ⬆️
services-user-notification 46.75% <ø> (+<0.01%) ⬆️
services-user-profile 56.82% <ø> (-4.96%) ⬇️
shared-components 26.91% <ø> (ø)
shared-form-fields 31.26% <ø> (ø)
shared-mocking 60.89% <ø> (ø)
shared-pii 92.85% <ø> (ø)
shared-problem 87.50% <ø> (ø)
shared-utils 27.69% <ø> (ø)
skilavottord-ws 24.14% <ø> (ø)
unicorn-app 25.00% <ø> (ø)
web 1.73% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 91 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7ffbbc9...627df11. Read the comment docs.

Copy link
Member

@busla busla left a comment

Choose a reason for hiding this comment

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

minor comments.

shouldn't this be part of the pull_request workflow?

.github/workflows/unicorns.yml Outdated Show resolved Hide resolved
- name: Check unicorn affected
id: unicorn-affected
run: |
yarn nx show projects --base origin/main --affected
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
yarn nx show projects --base origin/main --affected
yarn nx show projects --base ${{ github.event.repository.default_branch }} --affected

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, eventually - Though I'd keep it here since next step is also something we need to develop in a controlled environment

infra/package.json Outdated Show resolved Hide resolved
scripts/ci/unicorn-utils.mjs Outdated Show resolved Hide resolved
@datadog-island-is
Copy link

datadog-island-is bot commented Dec 2, 2024

Datadog Report

All test runs c712d72 🔗

99 Total Test Services: 0 Failed, 91 Passed
🔻 Test Sessions change in coverage: 22 decreased, 7 increased, 170 no change

Test Services
This report shows up to 10 services
Service Name Failed Known Flaky New Flaky Passed Skipped Total Time Code Coverage Change Test Service View
air-discount-scheme-backend 0 0 0 63 0 27.82s N/A Link
air-discount-scheme-web 0 0 0 2 0 6.96s N/A Link
api 0 0 0 4 0 2.34s N/A Link
api-catalogue-services 0 0 0 23 0 8.99s N/A Link
api-domains-air-discount-scheme 0 0 0 6 0 15.8s N/A Link
api-domains-assets 0 0 0 3 0 9.42s N/A Link
api-domains-auth-admin 0 0 0 18 0 10.12s N/A Link
api-domains-communications 0 0 0 5 0 30.19s N/A Link
api-domains-criminal-record 0 0 0 5 0 8.1s N/A Link
api-domains-driving-license 0 0 0 23 0 30.8s N/A Link

🔻 Code Coverage Decreases vs Default Branch (22)

This report shows up to 5 code coverage decreases.

  • portals-core - jest 23.85% (-5.51%) - Details
  • shared-components - jest 33.3% (-4.56%) - Details
  • shared-form-fields - jest 39.55% (-3.32%) - Details
  • auth-react - jest 30.66% (-3.21%) - Details
  • island-ui-core - jest 29.14% (-2.75%) - Details

Co-authored-by: Jón Levy <levy@andes.is>
@robertaandersen robertaandersen merged commit e3f87ba into feature/unicorn-app Dec 2, 2024
15 of 16 checks passed
@robertaandersen robertaandersen deleted the unicorn-pipe branch December 2, 2024 15:21
robertaandersen added a commit that referenced this pull request Dec 20, 2024
* feat: cd test app

* fix: rename app

* fix: name

* fix: added dummy queries and codegen target

* fix: eslint

* fix: style

* fix: import query

* fix: import shared type

* fix: affect shared/types

* fix: add docker-next target

* fix: nx project and infra

* chore: eslint

* chore: eslint

* chore: remove jsx-a11y

* fix: ignore css

* chore: nx format:write update dirty files

* Chore: adding unicorn to uber chart

* fix: support values file per service

* fix: cleanup

* fix: added values per service

* fix: only a single service please

* fix: set service toplevel

* fix: format

* fix: use yaml not js-yaml

* fix: remove release-tag arg

* fix: console message

* chore: remove helm values refactor

* chore: remove helm values

* chore: yarn charts

* chore: charts update dirty files

* chore: nx format:write update dirty files

* chore: charts update dirty files

* fix: make unaffected

* Unicorn pipe (#17094)

* chore: Adding pipeline for unicorns

* unicorn pipe

* unicorn pipe

* unicorn pipe

* unicorn pipe

* pipetest

* pipetest

* pipetest

* chore: nx format:write update dirty files

* Update .github/workflows/unicorns.yml

Co-authored-by: Jón Levy <levy@andes.is>

* suggestions

* chore: nx format:write update dirty files

* unicorn pipe

* suggestions

---------

Co-authored-by: andes-it <builders@andes.is>
Co-authored-by: Jón Levy <levy@andes.is>

* chore: charts update dirty files

* chore: Adding pipeline to detect unicorns (#17165)

* chore: Adding tests if pipeline should run on unicorns

* chore: nx format:write update dirty files

* chore: find release branch

* chore: find release branch

* chore: find release branch

* chore: find release branch

* chore: find release branch

* chore: find release branch

* chore: find release branch

* chore: find release branch

* chore: find release branch

* chore: find release branch

* chore: find release branch

* chore: find release branch

* chore: find release branch

* chore: find release branch

* chore: find release branch

* chore: find release branch

* chore: nx format:write update dirty files

* chore: find release branch

* chore: find release branch

* cleanup

* branch sync

* mergequeue

* chore: testing pipeline

* chore: nx format:write update dirty files

* ignore

* ignore

* ignore

* testing pipeline

* testing pipeline

* testing pipeline

---------

Co-authored-by: andes-it <builders@andes.is>

* chore: nx format:write update dirty files

* chore: testing mergequeue

* Adding mergequeue ci

* chore: testing mergequeue

* chore: testing mergequeue

* Uni pr (#17280)

* chore: testing mergequeue

* Adding mergequeue ci

* chore: testing mergequeue

* chore: testing mergequeue

* chore: testing mergequeue

* chore: testing mergequeue

* chore: nx format:write update dirty files

* chore: nx format:write update dirty files

* chore: testing mergequeue

* chore: testing mergequeue

* Uni pr (#17280)

* chore: testing mergequeue

* Adding mergequeue ci

* chore: testing mergequeue

* chore: testing mergequeue

* chore: testing mergequeue

---------

Co-authored-by: Jón Levy <levy@andes.is>
Co-authored-by: andes-it <builders@andes.is>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants