-
Notifications
You must be signed in to change notification settings - Fork 0
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
DEV-458 end-to-end automated test for metadata workflow #46
Draft
moseshll
wants to merge
112
commits into
main
Choose a base branch
from
DEV-458_E2E_workflow_test
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
moseshll
commented
Nov 13, 2024
- README updates on standard directory locations
- README updates on daily script inputs and outputs
aelkiss
reviewed
Dec 3, 2024
- README updates on standard directory locations - README updates on daily script inputs and outputs
* accepts empty lines * accepts 9 digit catalog record IDs * rejects all other non-whitespace lines * sets up empty journal * sets up logging to string for testing
- `with_test_environment` helper.
* Fix regex for verifying digitization source
* Add optional 'gzipped' argument * Make 'errmsg' a keyword argument
* verify lines have the expected number of columns * verify fields by regex as best we can Still to do: test hathifiles line counts against catalog; directly test HathifileContentsVerifier
- Add `database` to `Services` canister - Add `PopulateRightsVerifier` with unit tests
moseshll
force-pushed
the
DEV-458_E2E_workflow_test
branch
from
December 5, 2024 21:12
bff9a91
to
a2623bc
Compare
* Squelch logging output from tests -- since we now have an 'errors' method to check this in tests To do: integration test for hathifiles
* pull repeated uses to :around blocks * override TMPDIR by default
* Use env vars directly in derivative, or extract logic from directory_for where needed * Move filename logic from Verifier to Derivative
* move helpers out of spec helper to derivatives * use ClimateControl * move test for all missing files to derivatives integration * raise exception if requesting nonexistent 'full' deletes file
* clean up requires
* Reduces level of nested ifs * Separate catalog full verification from catalog update -- rather different behavior * Also: update documentation regarding derivatives / paths
aelkiss
reviewed
Dec 19, 2024
aelkiss
reviewed
Dec 19, 2024
* prep bin/verify.rb for testing * try running bin/verify.rb runs * use run_for_date by default; remove requirement for journal
aelkiss
reviewed
Dec 20, 2024
aelkiss
reviewed
Dec 20, 2024
aelkiss
reviewed
Dec 20, 2024
aelkiss
reviewed
Dec 20, 2024
* sufficient fixtures to run all verifiers (some fixtures have been moved/renamed and adjusted in tests appropriately) * verify.rb (for now) notes which date is needed for 'today' * extract solr catalog & hathifile database helpers to spec/support * info logging
…n date" and not "datestamp" - `Derivative` subclasses can provide a timestamp delta - PostZephirDerivatives and Dates also changed to "run date" semantics.
…integration_spec.rb` - Move `hathifile_derivative_spec.rb` to `derivative/hathifile_spec.rb` - Rename `HathifileRedirectsVerifier` to `HathifilesRedirectsVerifier`
previous commit changed everything use current date instead of filename date, so we can call the verifiers as they were before.
…n to monthlies) - Requires some wrangling of TMPDIR to find `ht_bib_export_incr...` and dollar dup files - Update .gitignore to just ignore data/ so we don't miss new fixtures
- For now these ENV values are taken from hathifiles secret - `database.yml` appears to be read-write to the rights DB (in practice) so using it for Verifier is not appropriate.
…ng a trailing digit.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.