Skip to content

[SD-462] Retire dev-tools dependency#638

Merged
vincent-gao merged 1 commit into
developfrom
remove-dev-tools
May 16, 2025
Merged

[SD-462] Retire dev-tools dependency#638
vincent-gao merged 1 commit into
developfrom
remove-dev-tools

Conversation

@vincent-gao

@vincent-gao vincent-gao commented May 14, 2025

Copy link
Copy Markdown
Contributor

Jira

https://digital-vic.atlassian.net/browse/SD-462

Changes

  1. remove dev-tools.sh
  2. Move and update the necessary files from the dev-tools repo to tide_core

All tests for tide_core, tide_api, tide_webform, tide_media, tide_event, tide_grant, tide_news, tide_landing_page, and tide_site are now running.

more details: https://github.com/dpc-sdp/tide_core/actions/runs/15023711109/job/42219070259?pr=638#step:9:29

The only thing we need to do in local development is run ahoy build.

@vincent-gao vincent-gao force-pushed the remove-dev-tools branch 3 times, most recently from f8007a0 to 28b7e64 Compare May 14, 2025 04:27
@vincent-gao vincent-gao changed the title remove dev-tools dependency Retire dev-tools dependency May 14, 2025
@vincent-gao vincent-gao changed the title Retire dev-tools dependency [SD-462] Retire dev-tools dependency May 14, 2025
@vincent-gao vincent-gao marked this pull request as ready for review May 14, 2025 04:43
@vincent-gao vincent-gao force-pushed the remove-dev-tools branch 4 times, most recently from f8fc10b to 0b8061d Compare May 14, 2025 14:28
Comment thread .circleci/test.sh

echo "==> Run Behat tests"
mkdir -p /tmp/artifacts/behat
ahoy cli "./vendor/bin/behat --strict --colors --tags="~@skipped" tests"

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 order matters a lot since some modules depend on others, which also makes it hard to fully isolate the tests. So please don't change the run order. more modules will be added soon.

Comment thread behat.yml
- '%paths.base%/modules/tide_publication/tests/behat/features'
- '%paths.base%/modules/tide_alert/tests/behat/features'
contexts:
- Tide\Tests\Context\FeatureContext

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.

FeatureContext will be shared across all modules, so it needs to be refactored into a namespaced format.

Comment thread behat.yml
suites:
default:
paths:
- '%paths.base%/tests/behat/features'

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.

Will include more modules in future.

And I see field "Show topic term and tags?"

And I should see text matching "Custom filters"
And I should not see text matching "Custom filters"

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.

Based on the current logic in the code, users shouldn't see Custom filters.

When I visit "node/add/landing_page"
And I click on the horizontal tab "Customised Header"
Then I should see an "#edit-header-style-options-fullwidtht" element
Then I should see an "#edit-header-style-options-fullwidth" element

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.

seems like a typo issue.

@@ -1,3 +1,4 @@
@skipped

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.

I skipped this menu test mainly because it seems to be an issue with Behat itself, or possibly an unknown issue ,where some menus created during tests aren't being cleaned up afterward, which then affects subsequent tests.

# Blocks.
| authenticated user | admin/structure/block | 404 |
| administrator | admin/structure/block | 200 |
| site_admin | admin/structure/block | 200 |

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.

This test will be handled in tide_landing_page.

@yeniatencio yeniatencio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks Vincent. LGTM

@anthony-malkoun anthony-malkoun left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Yep, good move Vincent. dev-tools only existed based on the assumption we were going to be building lots of separate modules but that ended up not being the case.

@vincent-gao vincent-gao merged commit bd0a8a7 into develop May 16, 2025
2 checks passed
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.

3 participants