Skip to content

feat: e2e reports in gh-pages#16179

Merged
zomars merged 62 commits intomainfrom
zomars/dops-39-remove-deploysentinel-as-playwright-support-is-deprecated
Aug 13, 2024
Merged

feat: e2e reports in gh-pages#16179
zomars merged 62 commits intomainfrom
zomars/dops-39-remove-deploysentinel-as-playwright-support-is-deprecated

Conversation

@zomars
Copy link
Copy Markdown
Contributor

@zomars zomars commented Aug 12, 2024

What does this PR do?

This pull request updates several GitHub Actions workflows to improve caching, report handling, and clean-up processes.

What changed?

  1. Caching:

    • Removed restore-keys from yarn install action.
    • Modified playwright install action to better cache Playwright binaries based on the installed version.
  2. Reports:

    • Added new workflows to merge and publish HTML reports.
    • Modified e2e workflow to upload test results with specific retention and naming conventions.
  3. Clean-up:

    • Introduced a new workflow to automatically clean up reports of deleted branches.

How to test?

  • Observe GitHub Actions runs for successful completion and correct behavior.
  • Ensure that caching and report publishing happens correctly.
  • Check that clean-up is triggered correctly on branch deletions.

Why make this change?

To optimize CI/CD workflows by improving caching strategies, enhancing report management, and automating clean-up tasks.

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have added a Docs issue here if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

Checklist

  • I haven't read the contributing guide
  • My code doesn't follow the style guidelines of this project
  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my changes generate no new warnings

…oysentinel-as-playwright-support-is-deprecated
@zomars zomars changed the base branch from gh-actions-test-branch to main August 13, 2024 20:45
Comment on lines -40 to -41
restore-keys: |
yarn-download-cache-
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Prevent stale caches. Only exact matches should be used.

${{ github.workspace }}/node_modules/playwright
key: cache-playwright-${{ hashFiles('**/yarn.lock') }}
restore-keys: cache-playwright-
key: ${{ runner.os }}-playwright-${{ env.PLAYWRIGHT_VERSION }}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Only bust playwright cache when the version actually changes. Not when any other dependency changes.

Comment thread playwright.config.ts
fullyParallel: true,
reporter: [
[process.env.CI ? "github" : "list"],
[process.env.CI ? "blob" : "list"],
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the GitHub reporter is not useful since we're using matrix strategies. https://playwright.dev/docs/test-reporters#github-actions-annotations

hariombalhara and others added 7 commits August 13, 2024 13:55
* Add bookingSuccessful event for recurring booking

* Remove unused variable
…ckable before flicker, and fix timezone issue (#16001)

* test: prevent modal button clickable before flicker

* chore: add note to migrate to appDir to solve full page flicker issue

* chore: Improve OutOfOfficePage loading experience

Refactor the OutOfOfficePage component to improve the loading experience by using the `isPending` property from the `trpc.viewer.outOfOfficeReasonList.useQuery()` hook. This workaorund eliminates the full page flicker issue and provides a better user experience. The "Add" button now shows a loading state when the query is pending.

* Update index.tsx

* chore: Update outOfOffice.handler.ts to use input.offset instead of calculating offset

* fix e2e

* Update

* revert

* chore: Fix offset calculation for out of office bookings

* chore: Update date range calculation for out-of-office modal

* chore: Remove console.log statement in out-of-office modal

* chore: Update TimeZoneEnum with additional time zones

This commit updates the TimeZoneEnum in the types.ts file to include additional time zones. The new time zones added are:
- ID: Asia/Jakarta (UTC+7)
- SAMOA: Etc/GMT+12 (UTC-12)
- AMERICAN_SAMOA: Pacific/Pago_Pago (UTC-11)
- HAWAII: Pacific/Honolulu (UTC-10)
- ALASKA: America/Anchorage (UTC-9)
- PACIFIC_USA: America/Los_Angeles (UTC-8)
- CENTRAL_USA: America/Chicago (UTC-6)
- EASTERN_USA: America/New_York (UTC-5)
- VENEZUELA: America/Caracas (UTC-4)
- ARGENTINA: America/Buenos_Aires (UTC-3)
- BRAZIL: America/Noronha (UTC-2)
- AZORES: Atlantic/Azores (UTC-1)
- FRANCE: Europe/Paris (UTC+1)
- GREECE: Europe/Athens (UTC+2)
- RUSSIA: Europe/Moscow (UTC+3)
- UAE: Asia/Dubai (UTC+4)
- PAKISTAN: Asia/Karachi (UTC+5)
- BANGLADESH: Asia/Dhaka (UTC+6)
- SINGAPORE: Asia/Singapore (UTC+8)
- JAPAN: Asia/Tokyo (UTC+9)
- AUSTRALIA: Australia/Sydney (UTC+10)
- SOLOMON_ISLANDS: Pacific/Guadalcanal (UTC+11)
- NEW_ZEALAND: Pacific/Auckland (UTC+12)

The purpose of this update is to provide a comprehensive list of time zones for users to choose from when setting their time zone in the out-of-office feature.

* update

* fix

* remove comment

---------

Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
Co-authored-by: unknown <adhabal2002@gmail.com>
* fix: scheduleId not unset properly bug

* Refactor almost complete, couple of tests needed

* More testid fixes

* Add migration to fixup schedule id bug

* Remove migration

* fix: Refactor useLockedFieldManager for correct useState use

---------

Co-authored-by: zomars <zomars@me.com>
* dumb components for calendar settings

* shadcn switch

* update exports

* update packages

* add calendar settings atom to examples app

* init calendar settings atom

* refactors

* fix import path

* export type for calendar switch props

* invalidate queries on deleting calendar credentials

* replace calendars list with calendar settings wrapper

* cleanup

* update styling

* refactors

* cleanup

* fix: missing key prop CalendarSettingsPlatformWrapper

* Label as client components

* Address client component build errors

* Move QueryCell out of packages/lib

* PR feedback

* more feedback

---------

Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com>
Co-authored-by: Morgan Vernay <morgan@cal.com>
Co-authored-by: Joe Au-Yeung <j.auyeung419@gmail.com>
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Aug 13, 2024

CLA assistant check
All committers have signed the CLA.

Comment thread .github/workflows/publish-report.yml Outdated
@github-actions github-actions Bot added the automated-tests area: unit tests, e2e tests, playwright label Aug 13, 2024
Copy link
Copy Markdown
Contributor

@emrysal emrysal left a comment

Choose a reason for hiding this comment

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

Quick typo fix, ready to merge, let's go 🚀

@zomars zomars merged commit f206b3d into main Aug 13, 2024
@zomars zomars deleted the zomars/dops-39-remove-deploysentinel-as-playwright-support-is-deprecated branch August 13, 2024 21:50
@zomars zomars mentioned this pull request Aug 14, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-tests area: unit tests, e2e tests, playwright ci area: CI, DX, pipeline, github actions core area: core, team members only foundation ready-for-e2e

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CAL-4140] Proposal: Enhancing Visibility of E2E Test Results

8 participants